forked from tukcom2023CD/RISING
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (48 loc) · 1.11 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
version: "3"
services:
db:
container_name: mysql
image: mysql:8.0
# volumes:
# - ./volume/mysql/data:/var/lib/mysql
networks:
- app-tier
environment: # 컨테이너 안의 환경변수 설정
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_USER_PASSWORD}
- TZ=Asia/Seoul
ports:
- "3307:3306"
tty: true
backend:
container_name: backend_con
image: ${JIB_IMAGE}
restart: on-failure
ports:
- "8080:8080"
depends_on:
- db
networks:
- app-tier
tty: true #명령어 실행 끝나도 꺼지지 않음
frontend:
container_name: frontend_con
build: ./frontend
command: ["npm", "start"]
ports:
- "3000:3000"
nginx:
container_name: nginx_con
image: nginx:latest
ports:
- "80:80"
# volumes:
# - ./proxy/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- backend
- frontend
networks:
app-tier:
external: true