-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
125 lines (115 loc) · 3.18 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3.2'
services:
db:
image: postgis/postgis:9.6-2.5
shm_size: 1g
env_file:
- ./dev.env
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
- ./entrypoint.sh:/var/lib/postgresql/entrypoint.sh
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 3s
timeout: 10s
retries: 5
adminer:
image: adminer
ports:
- 8080:8080
depends_on:
- db
volumes:
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
redis-master:
image: redis:6.0
container_name: redis-master
hostname: redis-master
command: [ "redis-server" ]
ports:
- 6379:6379
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis-master:6379
ports:
- 8081:8081
depends_on:
- redis-master
celery-workflow:
image: 'materialize:tag'
env_file:
- ./dev.env
- ./.env
environment:
- WORKER_NAME=worker.workflow
- QUEUE_NAME=workflow
command: celery --app="run.celery" worker --pool=prefork --hostname=worker.workflow@%h --queues=workflow,celery --concurrency=2 --loglevel=INFO -Ofair
volumes:
- ~/.cloudvolume/secrets:/home/nginx/.cloudvolume/secrets:z
- ~/.cloudvolume/secrets/google-secret.json:/home/nginx/.cloudvolume/secrets/google-secret.json:z
depends_on:
- redis-master
celery-process:
image: 'materialize:tag'
env_file:
- ./dev.env
- ./.env
environment:
- WORKER_NAME=worker.process
- QUEUE_NAME=process
command: celery --app="run.celery" worker --pool=prefork --hostname=worker.process@%h --queues=celery,process --concurrency=1 --loglevel=INFO -Ofair
volumes:
- ~/.cloudvolume/secrets:/home/nginx/.cloudvolume/secrets:z
- ~/.cloudvolume/secrets/google-secret.json:/home/nginx/.cloudvolume/secrets/google-secret.json:z
depends_on:
- redis-master
celery-beat:
image: 'materialize:tag'
env_file:
- ./dev.env
- ./.env
command: celery --app=run.celery beat --pidfile=/home/nginx/celerybeat.pid
volumes:
- ~/.cloudvolume/secrets:/home/nginx/.cloudvolume/secrets:z
- ~/.cloudvolume/secrets/google-secret.json:/home/nginx/.cloudvolume/secrets/google-secret.json:z
depends_on:
- redis-master
materialize:
image: 'materialize:tag'
build:
context: .
dockerfile: Dockerfile
ports:
- 80:80
volumes:
- ~/.cloudvolume/secrets:/home/nginx/.cloudvolume/secrets:z
- ~/.cloudvolume/secrets/google-secret.json:/home/nginx/.cloudvolume/secrets/google-secret.json:z
- .:/app
env_file:
- ./dev.env
- ./.env
depends_on:
- db
- redis-master
- celery-process
- celery-workflow
- celery-beat
flower:
image: mher/flower:latest
environment:
- FLOWER_PORT=5555
command: celery --broker=redis://redis-master:6379/0 flower --port=5555
ports:
- 5555:5555
depends_on:
- celery-process
- celery-workflow
volumes:
postgres_data:
redis: