]> git.lizzy.rs Git - cheatdb.git/blob - docker-compose.yml
Fix typo
[cheatdb.git] / docker-compose.yml
1 version: '3'
2 services:
3   db:
4     image: "postgres:9.6.5"
5     volumes:
6       - "./data/db:/var/lib/postgresql/data"
7     env_file:
8       - config.env
9
10   redis:
11     image: 'redis:3.0-alpine'
12     command: redis-server
13     volumes:
14       - './data/redis:/data'
15
16   app:
17     build: .
18     command: ./utils/entrypoint.sh
19     env_file:
20       - config.env
21     ports:
22       - 5123:5123
23     volumes:
24       - "./data/uploads:/var/cdb/uploads"
25       - "./app:/source/app"
26       - "./migrations:/source/migrations"
27     depends_on:
28       - db
29       - redis
30
31   worker:
32     build: .
33     command: celery -A app.tasks.celery worker
34     env_file:
35       - config.env
36     environment:
37       - FLASK_CONFIG=../config.cfg
38     volumes:
39       - "./data/uploads:/var/cdb/uploads"
40       - "./app:/home/cdb/app"
41     depends_on:
42       - redis
43
44   beat:
45     build: .
46     command: celery -A app.tasks.celery beat
47     env_file:
48       - config.env
49     environment:
50       - FLASK_CONFIG=../config.cfg
51     depends_on:
52       - redis
53
54   flower:
55     image: mher/flower
56     command: ["flower", "--broker=redis://redis:6379/0", "--port=5124"]
57     env_file:
58       - config.env
59     ports:
60       - 5124:5124
61     depends_on:
62       - redis
63
64   exporter:
65     image: ovalmoney/celery-exporter
66     env_file:
67       - config.env
68     ports:
69       - 5125:9540
70     depends_on:
71       - redis