-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
121 lines (113 loc) · 2.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '3.3'
services:
openfire:
build:
context: OpenFire
dockerfile: Dockerfile
ports:
- "3478:3478"
- "3479:3479"
- "5222:5222"
- "5223:5223"
- "5229:5229"
- "5269:5269"
- "7070:7070"
- "7443:7443"
- "7777:7777"
- "9090:9090"
- "9091:9091"
# restart: always
env_file:
- OpenFire/.env
networks:
- database-network
- proxy-network
mariadb:
build:
context: ./MariaDB
dockerfile: Dockerfile
ports:
- "3306:3306"
restart: always
env_file:
- ./MariaDB/.env
networks:
- database-network
adminer:
build:
context: ./Adminer
dockerfile: Dockerfile
ports:
- "8081:8080"
env_file:
- ./Adminer/.env
depends_on:
- mariadb
networks:
- database-network
php-fpm:
build:
context: ./Php-fpm
dockerfile: Dockerfile
env_file:
- ./Php-fpm/.env
volumes:
- ./SourceCode:/var/www/html
networks:
- backend-network
- database-network
proxy:
build:
context: ./Proxy
dockerfile: Dockerfile
ports:
- "80:80"
restart: always
env_file:
- ./Proxy/.env
networks:
- proxy-network
- backend-network
- database-network
apache:
build:
context: ./Apache
dockerfile: Dockerfile
restart: always
env_file:
- ./Apache/.env
volumes:
- ./SourceCode:/var/www/html
ports:
- "8081:80"
depends_on:
- php-fpm
networks:
- backend-network
- proxy-network
workspace:
build:
context: ./Workspace
dockerfile: Dockerfile
env_file:
- ./Workspace/.env
volumes:
- ./SourceCode:/var/www/html
tty: true
stdin_open: true
networks:
- backend-network
- database-network
- proxy-network
networks:
# All Database
database-network:
driver: bridge
internal: true
# Proxy server
proxy-network:
driver: bridge
# All Backend Application (API's)
backend-network:
driver: bridge
internal: true