-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (62 loc) · 1.51 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
version: "3.6"
services:
redis:
image: redis:6
volumes:
- redis_volume:/data
db:
image: postgres:12
environment:
POSTGRES_DB: say
POSTGRES_USER: postgres
volumes:
- postgres_volume:/var/lib/postgresql/data
backend: &backend
image: ${CONTAINER_IMAGE:-backend}
environment:
SAY_ENVIRONMENT: ${ENVIRONMENT:-dev}
expose:
- 5000
volumes:
- media_volume:/app/files
worker: &worker
<<: *backend
command: celery -A say.celery worker --autoscale=8,1 --loglevel=WARNING -B -S redbeat.RedBeatScheduler -Q celery -Ofair
healthcheck:
test: echo
slow-worker:
<<: *worker
command: celery -A say.celery worker --autoscale=4,1 --loglevel=WARNING -S redbeat.RedBeatScheduler -Q slow -Ofair
flower:
<<: *worker
command: celery -A say.celery flower
environment:
- FLOWER_PERSISTENT=true
- FLOWER_DB=/flower/db
volumes:
- flower_volume:/flower
media:
image: flashspys/nginx-static
volumes:
- media_volume:/static
static:
image: flashspys/nginx-static
expose:
- 80
volumes:
- static_volume:/static
volumes:
redis_volume:
name: "say-backend_redis_volume"
postgres_volume:
name: "say-backend_postgres_volume"
media_volume:
name: "say-backend_media_volume"
static_volume:
name: "say-backend_static_volume"
flower_volume:
name: "say-backend_flower_volume"
configs:
backned-config:
name: ${STACK_NAME:-say}.env
external: true