-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.deployment.yml
69 lines (63 loc) · 1.41 KB
/
docker-compose.deployment.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: "3"
services:
safers-deployment-db:
image: kartoza/postgis:latest
env_file:
- .env
environment:
POSTGRES_DBNAME: safers_db
POSTGRES_USER: ${DB_USER}
POSTGRES_PASS: ${DB_PASSWORD}
ALLOW_IP_RANGE: 0.0.0.0/0
networks:
- safers-deployment
ports:
- "5666:5432"
safers-deployment-server:
build:
context: .
tty: true
env_file:
- .env
environment:
DJANGO_ENVIRONMENT: deployment
DJANGO_SETTINGS_MODULE: config.settings
ENABLE_GUNICORN: 1
working_dir: /home/app/server
volumes:
- ./server:/home/app/server
networks:
- safers-deployment
ports:
- "8000:8000" # API
- "8080:8080" # profiling
safers-deployment-worker:
build: .
tty: true
env_file:
- .env
environment:
DJANGO_ENVIRONMENT: deployment
DJANGO_SETTINGS_MODULE: config.settings
ENABLE_RMQ_WORKER: 1
volumes:
- ./server:/home/app/server
networks:
- safers-deployment
safers-deployment-scheduler:
build: .
env_file:
- .env
environment:
DJANGO_ENVIRONMENT: deployment
DJANGO_SETTINGS_MODULE: config.settings
ENABLE_CRON: 1
volumes:
- ./server:/home/app/server
- ./scheduler:/home/app/scheduler
networks:
- safers-deployment
networks:
safers-deployment:
name: safers-deployment
driver: bridge