forked from unicef/etools-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
69 lines (65 loc) · 1.67 KB
/
docker-compose.dev.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
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
version: '2.1'
services:
proxy:
build:
context: ./proxy
dockerfile: ./Dockerfile
image: etoolsdev/etools-proxy:dev
ports:
- "8082:80"
depends_on:
- backend
- pmp
- dashboard
- travel
backend:
environment:
DEBUG_IP: ${DEBUG_IP:-"10.0.2.2"}
DEBUG_PORT: ${DEBUG_PORT:-51312}
DATABASE_URL: postgis://etoolusr:@db:5432/etools
DJANGO_SETTINGS_MODULE: EquiTrack.settings.local
PYCHARM_DEBUG: 1
build:
context: ./backend
dockerfile: ./Dockerfile-dev
args:
REQUIREMENTS_FILE: local.txt
image: etoolsdev/etools-backend:dev
command: bash -c "sleep 10 && /code/wait-for-it.sh db:5432 && python /code/EquiTrack/manage${BACKEND_DEBUG}.py runserver 0.0.0.0:8080"
volumes:
- "./backend:/code"
depends_on:
- db
db:
build:
context: ./db
dockerfile: ./Dockerfile
image: etoolsdev/etools-db:dev
# volumes:
# - './postgres_data:/var/lib/postgresql/data'
pmp:
build:
context: ./pmp
dockerfile: ./Dockerfile-dev
image: etoolsdev/etools-pmp:dev
volumes:
- "./pmp:/code"
command: [polymer, serve, -H, 0.0.0.0]
#
dashboard:
build:
context: ./dashboard
dockerfile: ./Dockerfile-dev
image: etoolsdev/etools-dashboard:dev
volumes:
- "./dashboard:/code"
command: [polymer, serve, -H, 0.0.0.0] # doesn't have auto-reload yet https://github.com/Polymer/polymer-cli/issues/230
#
travel:
build:
context: ./travel
dockerfile: ./Dockerfile-dev
image: etoolsdev/etools-travel:dev
volumes:
- "./travel:/code"
command: [polymer, serve, -H, 0.0.0.0]