forked from boostcampwm-2024/web30-stop-troublepainter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.12 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
services:
server1:
image: ${DOCKERHUB_USERNAME}/troublepainter-server:latest
container_name: troublepainter_server1
environment:
- NODE_ENV=production
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- CLOVA_API_KEY=${CLOVA_API_KEY}
- CLOVA_GATEWAY_KEY=${CLOVA_GATEWAY_KEY}
networks:
- app_network
restart: unless-stopped
server2:
image: ${DOCKERHUB_USERNAME}/troublepainter-server:latest
container_name: troublepainter_server2
environment:
- NODE_ENV=production
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- CLOVA_API_KEY=${CLOVA_API_KEY}
- CLOVA_GATEWAY_KEY=${CLOVA_GATEWAY_KEY}
networks:
- app_network
restart: unless-stopped
nginx:
image: ${DOCKERHUB_USERNAME}/troublepainter-nginx:latest
container_name: troublepainter_nginx
volumes:
- /etc/letsencrypt:/etc/letsencrypt
ports:
- "80:80"
- "443:443"
depends_on:
- server1
- server2
networks:
- app_network
restart: unless-stopped
networks:
app_network:
name: app_network
driver: bridge