-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (72 loc) · 1.57 KB
/
docker-compose.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
version: "3"
services:
# #
# Third party images #
# #
postgres:
image: postgres:12-alpine
restart: on-failure
volumes:
- db_volume:/var/lib/postgresql/data
env_file:
- .env.postgres
redis:
image: redis:7
restart: on-failure
volumes:
- redis_volume:/data
# #
# AskAnna images #
# #
# For development, you don't need the AskAnna Backup Helper. If you want to use the backup helper, feel free to
# uncomment the following lines.
#
# backup_helper:
# image: askanna/backup-helper
# restart: on-failure
# volumes:
# - backup_volume:/backups
# - storage_volume:/data
# env_file:
# - .env.django
# - .env.postgres
# #
# Project images #
# #
django: &django
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
restart: on-failure
depends_on:
- postgres
- redis
volumes:
- .:/app:z
- /var/run/docker.sock:/var/run/docker.sock:ro
env_file:
- .env.django
- .env.postgres
ports:
- "8000:8000"
stdin_open: true
tty: true
command: /start
celeryworker:
<<: *django
ports: []
command: /start-celeryworker
celerybeat:
<<: *django
ports: []
command: /start-celerybeat
flower:
<<: *django
ports:
- "5555:5555"
command: /start-flower
volumes:
storage_volume:
db_volume:
redis_volume:
backup_volume: