-
Notifications
You must be signed in to change notification settings - Fork 80
/
docker-compose.yml
180 lines (172 loc) · 4.41 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
services:
data:
build:
context: .
dockerfile: docker/mariadb/Dockerfile
entrypoint: docker-entrypoint.sh
command: mariadbd
container_name: ivozprovider-data
volumes:
- dbdata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: ivozprovider
MYSQL_USER: regular
MYSQL_PASSWORD: changeme
networks:
network:
ipv4_address: 10.189.4.10
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost -u regular -pchangeme"]
interval: 5s
timeout: 10s
retries: 5
start_period: 5s
redis:
hostname: ivozprovier-redis
container_name: ivozprovider-redis
image: ivozprovider-redis:local
build:
context: .
dockerfile: docker/redis/Dockerfile
networks:
network:
ipv4_address: 10.189.4.11
healthcheck:
test: ["CMD", "redis-cli", "-p", "26379", "ping"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
backend:
hostname: ivozprovier-backend
command: /bin/bash /var/run/start.sh
container_name: ivozprovider-backend
image: ivozprovider-backend:local
build:
context: .
dockerfile: docker/backend/Dockerfile
args:
NAME: ivozprovider
XDEBUG: true
UID: "${UID:-1000}"
GID: "${GID:-1000}"
volumes:
- .:/opt/irontec/ivozprovider
- ~/.cache/composer:/home/docker/.cache/composer
depends_on:
data:
condition: service_healthy
redis:
condition: service_healthy
links:
- data:data.ivozprovider.local
- redis:cache.ivozprovider.local
extra_hosts:
xdebug: 10.189.4.1
networks:
network:
ipv4_address: 10.189.4.20
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
portal-platform:
hostname: ivozprovider-portal-platform
command: /bin/bash /var/run/start.sh platform
container_name: ivozprovider-portal-platform
image: ivozprovider-portal:local
build:
context: .
dockerfile: docker/portal/Dockerfile
user: "${UID:-1000}:${GID:-1000}"
environment:
- NODE_ENV=development
volumes:
- .:/opt/irontec/ivozprovider
- ../ivoz-ui/:/opt/ivoz-ui
depends_on:
backend:
condition: service_healthy
links:
- backend:backend.ivozprovider.local
networks:
network:
ipv4_address: 10.189.4.30
portal-brand:
hostname: ivozprovider-portal-brand
command: /bin/bash /var/run/start.sh brand
container_name: ivozprovider-portal-brand
image: ivozprovider-portal:local
build:
context: .
dockerfile: docker/portal/Dockerfile
user: "${UID:-1000}:${GID:-1000}"
environment:
- NODE_ENV=development
volumes:
- .:/opt/irontec/ivozprovider
- ../ivoz-ui/:/opt/ivoz-ui
depends_on:
backend:
condition: service_healthy
links:
- backend:backend.ivozprovider.local
networks:
network:
ipv4_address: 10.189.4.31
portal-client:
hostname: ivozprovider-portal-client
command: /bin/bash /var/run/start.sh client
container_name: ivozprovider-portal-client
image: ivozprovider-portal:local
build:
context: .
dockerfile: docker/portal/Dockerfile
user: "${UID:-1000}:${GID:-1000}"
environment:
- NODE_ENV=development
volumes:
- .:/opt/irontec/ivozprovider
- ../ivoz-ui/:/opt/ivoz-ui
depends_on:
backend:
condition: service_healthy
links:
- backend:backend.ivozprovider.local
networks:
network:
ipv4_address: 10.189.4.32
portal-user:
hostname: ivozprovider-portal-user
command: /bin/bash /var/run/start.sh user
container_name: ivozprovider-portal-user
image: ivozprovider-portal:local
build:
context: .
dockerfile: docker/portal/Dockerfile
user: "${UID:-1000}:${GID:-1000}"
environment:
- NODE_ENV=development
volumes:
- .:/opt/irontec/ivozprovider
- ../ivoz-ui/:/opt/ivoz-ui
depends_on:
backend:
condition: service_healthy
links:
- backend:backend.ivozprovider.local
networks:
network:
ipv4_address: 10.189.4.33
networks:
network:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.189.4.0/24
volumes:
dbdata: