-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (48 loc) · 1.23 KB
/
docker-compose.yaml
File metadata and controls
55 lines (48 loc) · 1.23 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
44
45
46
47
48
49
50
51
52
53
54
55
# Compose file to get a full deployment running.
version: '3'
volumes:
database-data:
driver: local
services:
database:
restart: always
image: postgres:alpine
volumes:
- database-data:/var/lib/postgresql/data
env_file:
- database.env
seed:
image: callblocker:latest
volumes:
- database-data:/data
command: ['sh', '/callblocker/bin/seed-db.sh']
env_file:
- database.env
environment:
- DJANGO_SETTINGS_MODULE=conf.settings.production.base
- SEED_MARK_FOLDER=/data
- LOAD_SAMPLE_DATA=${LOAD_SAMPLE_DATA:-False}
depends_on:
- 'database'
links:
- database
# Actual backend server.
backend:
restart: always
image: callblocker:latest
ports:
- '5000:${HOST_API_PORT:-5000}'
env_file:
- database.env
environment:
- DJANGO_SETTINGS_MODULE=conf.settings.production.server
- HOST_API_ADDRESSES=${HOST_API_ADDRESSES:?HOST_API_ADDRESS is required}
- HOST_API_PORT=${HOST_API_PORT:-5000}
- MODEM_USE_FAKE=${MODEM_USE_FAKE:-False}
depends_on:
- 'seed'
- 'database'
links:
- database
devices:
- '${HOST_MODEM_DEVICE:?HOST_MODEM_DEVICE is required}:/dev/ttyACM0'