-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 832 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 832 Bytes
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
version: "3.8"
services:
web-client:
build:
context: ./web-client
ports:
- "3000:3000"
volumes:
- ./web-client:/app
- /app/node_modules
environment:
- NODE_ENV=production
- NEXT_PUBLIC_BASE_API_URL=${NEXT_PUBLIC_BASE_API_URL}
- NEXT_PUBLIC_BASE_WS_HOST=${NEXT_PUBLIC_BASE_WS_HOST}
depends_on:
- backend
backend:
build:
context: ./backend
ports:
- "8080:8080"
volumes:
- ./backend:/app
- /app/node_modules
environment:
- NODE_ENV=production
- API_PORT=${API_PORT}
- DB_HOST=${DB_HOST}
- TELEGRAM_BOT_KEY=${TELEGRAM_BOT_KEY}
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web-client
- backend