forked from minetest/contentdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (65 loc) · 1.3 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
version: '3'
services:
db:
image: "postgres:9.6.5"
volumes:
- "./data/db:/var/lib/postgresql/data"
env_file:
- config.env
redis:
image: 'redis:3.0-alpine'
command: redis-server
volumes:
- './data/redis:/data'
app:
build: .
command: ./utils/entrypoint.sh
env_file:
- config.env
ports:
- 5123:5123
volumes:
- "./data/uploads:/var/cdb/uploads"
- "./app:/source/app"
- "./migrations:/source/migrations"
depends_on:
- db
- redis
worker:
build: .
command: celery -A app.tasks.celery worker
env_file:
- config.env
environment:
- FLASK_CONFIG=../config.cfg
volumes:
- "./data/uploads:/var/cdb/uploads"
- "./app:/home/cdb/app"
depends_on:
- redis
beat:
build: .
command: celery -A app.tasks.celery beat
env_file:
- config.env
environment:
- FLASK_CONFIG=../config.cfg
depends_on:
- redis
flower:
image: mher/flower
command: ["flower", "--broker=redis://redis:6379/0", "--port=5124"]
env_file:
- config.env
ports:
- 5124:5124
depends_on:
- redis
exporter:
image: ovalmoney/celery-exporter
env_file:
- config.env
ports:
- 5125:9540
depends_on:
- redis