forked from boostcampwm-2024/web33-Nocta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) Β· 908 Bytes
/
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
services:
frontend:
build:
context: .
dockerfile: ./client/Dockerfile
volumes:
- ./client/dist:/app/client/dist
environment:
- NODE_ENV=${NODE_ENV}
- VITE_API_URL=${VITE_API_URL}
command: pnpm --filter client run build
backend:
build:
context: .
dockerfile: ./server/Dockerfile
ports:
- "3000:3000"
environment:
- MONGO_URI=${MONGO_URI}
- NODE_ENV=${NODE_ENV}
- PORT=3000
- JWT_SECRET=${JWT_SECRET}
- JWT_REFRESH_SECRET=${JWT_REFRESH_SECRET}
nginx:
build:
context: .
dockerfile: ./nginx/Dockerfile
ports:
- "80:80"
- "443:443"
volumes:
- ./client/dist:/usr/share/nginx/html
- ~/certbot/www:/var/www/certbot
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- frontend
- backend
networks:
app-network:
driver: bridge