forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.sample.yml
33 lines (30 loc) · 1.04 KB
/
docker-compose.override.sample.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
name: tasking-manager-main
services:
tm-db:
# Database container binds to host's 5433 port, update to use any other port.
ports:
- 5433:5432
tm-backend:
# Backend binds to 5000 by default, change to use other ports.
# Make sure to update, TM_APP_API_URL=http://127.0.0.1:5000 in tasking-manager.env accordingly.
build:
context: .
volumes:
- ./backend:/usr/src/app/backend
- /usr/src/app/node_modules
command: "gunicorn -c python:backend.gunicorn manage:application --workers 1 --log-level error --reload"
ports:
- 5000:5000
tm-frontend:
build:
context: .
dockerfile: "./scripts/docker/Dockerfile.frontend_development"
# Frontend development server is binded to host's 8000 port by default, update to use any other port.
# Make sure to update, TM_APP_BASE_URL=http://127.0.0.1:8000 in tasking-manager.env accordingly.
ports:
- 8000:8000
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=true