-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.05 KB
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
services:
mysql:
image: mysql:8
container_name: fitcard-mysql
volumes:
- db:/var/lib/mysql
restart: "no"
env_file:
- /etc/fitcard/.env
networks:
- fitcard
ports:
- "3306:3306"
fitcard:
image: fitcard-image:latest
container_name: fitcard-be
depends_on:
- mysql
ports:
- "8081:8081"
restart: "always"
networks:
- fitcard
financial:
image: financial-image:latest
container_name: financial-be
depends_on:
- mysql
ports:
- "8082:8082"
restart: "always"
networks:
- fitcard
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx:/etc/nginx # nginx 설정 파일 경로
- /var/www/html:/var/www/html # 정적 파일 제공을 위한 경로
- /etc/letsencrypt:/etc/letsencrypt # SSL 인증서 경로
restart: "always"
networks:
- fitcard
volumes:
db: {}
networks:
fitcard:
name: fitcard
driver: bridge