-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 1.03 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
43 lines (40 loc) · 1.03 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
version: "3"
services:
api:
build: ./tracker_api
command: gunicorn tracker.wsgi:application --chdir=/tracker/src -b=0.0.0.0:8000 -w=4 -t=10
container_name: "Tracker-Backend"
environment:
TRACKER_ENV: ${TRACKER_ENV:-development}
extra_hosts:
- "host.docker.internal:host-gateway"
image: tracker:backend
restart: always
volumes:
- ./tracker_api:/tracker
webui:
build: ./tracker_webui
command: bash -c "npm run build && npm start"
container_name: "Tracker-Frontend"
environment:
NODE_ENV: ${NODE_ENV:-local}
image: tracker:frontend
restart: always
volumes:
- ./tracker_webui:/tracker
- /tracker/node_modules/
depends_on:
- api
nginx:
image: nginx:latest
container_name: "Tracker-Nginx"
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./tracker_api/static:/static
- ./tracker_webui/.next:/.next
- ./certs:/etc/ssl/certs
depends_on:
- webui