-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (55 loc) · 1.13 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
networks:
esc-backend-internal:
driver: bridge
services:
esc-nginx:
container_name: nginx
image: nginx
restart: always
ports:
- 8080:8080
- 5723:5723
- 80:80
- 443:443
volumes:
#docker-compose.yml과 같은 레벨에 둔 nginx.conf를 mount.
- ./esc-nginx/:/etc/nginx/
env_file:
- .env
networks:
- esc-backend-internal
esc-server:
container_name: server
build:
./esc-server
networks:
- esc-backend-internal
env_file:
- .env
depends_on:
esc-config:
condition: service_healthy
mysql:
condition: service_healthy
esc-config:
container_name: config
build:
./esc-server-config
networks:
- esc-backend-internal
mysql:
container_name: mysql
image: mysql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: meeting
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3306" ]
interval: 30s
timeout: 10s
retries: 5
networks:
- esc-backend-internal