-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.deploy.yml
69 lines (67 loc) · 1.56 KB
/
docker-compose.deploy.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.4'
services:
django:
image: trafficstops_app:latest
command: ["uwsgi", "--show-config"]
environment:
DJANGO_MANAGEPY_MIGRATE: "on"
env_file:
- .docker.env
links:
- db:db
depends_on:
- redis
- mailhog
ports:
- "8000:8000"
worker:
image: trafficstops_app:latest
command: ["celery", "--app=traffic_stops", "worker", "-l", "info"]
env_file:
- .docker.env
links:
- db:db
depends_on:
- django
- redis
- mailhog
beat:
image: trafficstops_app:latest
command: ["celery", "--app=traffic_stops", "beat", "--pidfile=/tmp/celerybeat.pid", "--schedule=/tmp/celerybeat-schedule", "-l", "info"]
env_file:
- .docker.env
links:
- db:db
depends_on:
- django
- redis
- mailhog
mailhog:
image: mailhog/mailhog:v1.0.0
db:
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: traffic_stops
DATABASE_URL: postgres://[email protected]:5432/traffic_stops
image: postgres:12-alpine
ports:
- "9051:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./docker-entrypoint.postgres.sql:/docker-entrypoint-initdb.d/init.sql
- ./docker-postgresql.conf:/etc/postgresql/postgresql.conf
command: postgres -c config_file=/etc/postgresql/postgresql.conf
shm_size: 512mb
redis:
image: redis:5-alpine
ports:
- "9052:6379"
volumes:
- redisdata:/data
volumes:
pgdata:
redisdata:
dev_media: {}
dev_node_modules: {}
dev_venv: {}
dev_cache: {}