forked from boostcampwm-2024/web05-Denamu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
138 lines (132 loc) · 2.99 KB
/
docker-compose.dev.yml
File metadata and controls
138 lines (132 loc) · 2.99 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: denamu-dev
include:
- docker-compose.infra.yml
services:
# NGINX 서비스
nginx:
build:
context: ../nginx
dockerfile: Dockerfile.dev
ports:
- '80:80'
- '443:443'
networks:
- Denamu
depends_on:
- app
volumes:
- ../nginx/logs:/var/log/nginx
- ../nginx/nginx.conf:/etc/nginx/nginx.conf
- ../static:/var/web05-Denamu/static
- ../objects:/var/web05-Denamu/objects
develop:
watch:
- path: ../nginx/nginx.conf
action: restart
- path: ../nginx/scripts/generate_cert.sh
action: rebuild
environment:
TZ: 'Asia/Seoul'
profiles:
- default
# Client 개발 서비스
web:
build:
context: ../client
dockerfile: docker/Dockerfile.dev
ports:
- '5173:5173'
networks:
- Denamu
volumes:
- ../client:/var/web05-Denamu/client
- /var/web05-Denamu/client/node_modules
develop:
watch:
- path: ../client/package.json
action: rebuild
environment:
TZ: 'Asia/Seoul'
profiles:
- default
# WAS 개발 서비스
app:
build:
context: ../server
dockerfile: docker/Dockerfile.dev
image: denamu-dev-app:latest
ports:
- '8080:8080'
networks:
- Denamu
depends_on:
mysql-db:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- ../server:/var/web05-Denamu/server
- /var/web05-Denamu/server/node_modules
environment:
NODE_ENV: 'DEV'
TZ: 'Asia/Seoul'
develop:
watch:
- path: ../server/package.json
action: rebuild
profiles:
- was
- default
# Feed Crawler 개발 서비스
feed-crawler:
build:
context: ../feed-crawler
dockerfile: docker/Dockerfile.dev
image: denamu-dev-feed-crawler:latest
networks:
- Denamu
depends_on:
mysql-db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ../feed-crawler:/var/web05-Denamu/feed-crawler
- /var/web05-Denamu/feed-crawler/node_modules
environment:
NODE_ENV: 'DEV'
TZ: 'Asia/Seoul'
develop:
watch:
- path: ../feed-crawler/package.json
action: rebuild
profiles:
- feed-crawler
- default
# Email Worker 개발 서비스
email-worker:
build:
context: ../email-worker
dockerfile: docker/Dockerfile.dev
image: denamu-dev-email-worker:latest
networks:
- Denamu
depends_on:
rabbitmq:
condition: service_healthy
volumes:
- ../email-worker:/var/web05-Denamu/email-worker
- /var/web05-Denamu/email-worker/node_modules
environment:
NODE_ENV: 'DEV'
TZ: 'Asia/Seoul'
stop_grace_period: 30s
develop:
watch:
- path: ../email-worker/package.json
action: rebuild
profiles:
- email-worker
- default