-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (77 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
84 lines (77 loc) · 1.64 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
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
version: "3.9"
services:
backend:
image: backend
container_name: sy_backend
build:
context: ./backend
dockerfile: Dockerfile
restart: always
depends_on:
- redis
environment:
SPRING_DATASOURCE_URL : ${SPRING_DATASOURCE_URL}
MYSQL_USER : ${MYSQL_USER}
MYSQL_PASSWORD : ${MYSQL_PASSWORD}
CLOVA_CHAT : ${CLOVA_CHAT}
API_GATEWAY_KEY : ${API_GATEWAY_KEY}
API_KEY : ${API_KEY}
STT_CLIENT_ID : ${STT_CLIENT_ID}
CLIENT_SECRET : ${CLIENT_SECRET}
STT_URL : ${STT_URL}
ports:
- "8080:8080"
volumes:
- ./backend:/app
networks:
- shine-year
redis:
container_name: redis
image: redis
restart: always
ports:
- "6379:6379"
networks:
- shine-year
frontend:
image: frontend
container_name: sy_frontend
build:
context: ./frontend
dockerfile: Dockerfile.prod
ports:
- "5173:5173"
volumes:
- ./frontend:/frontend
- ./frontend/build:/frontend/dist
- /frontend/node_modules
tty: true
stdin_open: true
networks:
- shine-year
nginx:
container_name: nginx
restart: unless-stopped
build:
context: ./nginx
ports:
- "80:80"
- "443:443"
expose:
- 80
- 443
volumes:
- ./frontend/build:/var/www/frontend
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/certificate.pem:/etc/nginx/certificate.pem
- ./nginx/private.key:/etc/nginx/private.key
depends_on:
- backend
- frontend
networks:
- shine-year
volumes:
mysql_data:
networks:
shine-year:
driver: bridge