-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
95 lines (90 loc) · 2.39 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: "3.1"
services:
postgres:
build:
context: .
dockerfile: docker-dev/Dockerfile-db
args:
- "FILENAME=${FILENAME}"
- "FILENAMECORE=${FILENAMECORE}"
secrets:
- db_password
- db_username
volumes:
- pg_data:/var/lib/postgresql/9.5/main
backend:
build:
context: .
dockerfile: docker-dev/Dockerfile-backend
depends_on:
- postgres
volumes:
- ./iot-tap-backend:/home/iftttuser/backend
- ./iot-autotap/autotapmc:/home/iftttuser/backend/autotapmc
- ./iot-autotap/autotapta:/home/iftttuser/backend/autotapta
- static_backend:/home/iftttuser/backend/iot-tap-backend/static
expose:
- "8000"
secrets:
- source: backend_admin_name
target: admin_name
- source: backend_admin_email
target: admin_email
- source: backend_admin_password
target: back_admin_password
- db_password
- db_username
- backend_django_secret
- client_id
- client_secret
environment:
- PYTHONUNBUFFERED=1
- "MIGRATION=${MIGRATION}"
- "DEBUG=true"
frontend:
build:
context: .
dockerfile: docker-dev/Dockerfile-frontend
volumes:
- ./ifttt-frontend/rule-creation/RMI/:/home/superifttt/frontend/
expose:
- "4200"
nginx:
build:
context: .
dockerfile: docker-dev/Dockerfile-nginx
depends_on:
- backend
volumes:
- static_backend:/etc/backend/static
ports:
- "80:80"
- "443:443"
secrets:
iotcore_admin_name:
file: ./secrets/iotcore_admin_name
iotcore_admin_email:
file: ./secrets/iotcore_admin_email
iotcore_admin_password:
file: ./secrets/iotcore_admin_password
backend_admin_name:
file: ./secrets/backend_admin_name
backend_admin_email:
file: ./secrets/backend_admin_email
backend_admin_password:
file: ./secrets/backend_admin_password
db_username:
file: ./secrets/db_username
db_password:
file: ./secrets/db_password
iotcore_django_secret:
file: ./secrets/iotcore_django_secret
backend_django_secret:
file: ./secrets/backend_django_secret
client_id:
file: ./secrets/client_id
client_secret:
file: ./secrets/client_secret
volumes:
static_backend:
pg_data: