-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
69 lines (64 loc) · 1.36 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
version: '3'
services:
db:
image: "postgres:14"
restart: unless-stopped
volumes:
- "./data/db:/var/lib/postgresql/data"
env_file:
- config.env
redis:
image: 'redis:6.2-alpine'
restart: unless-stopped
command: redis-server
volumes:
- './data/redis:/data'
app:
build: .
restart: unless-stopped
command: ./utils/entrypoint.sh
env_file:
- config.env
ports:
- "5123:5123"
volumes:
- "./data/uploads:/var/cdb/uploads"
- "./data/logs:/var/cdb/logs"
- "./app:/source/app"
- "./utils:/source/utils"
- "./migrations:/source/migrations"
depends_on:
- db
- redis
worker:
build: .
restart: unless-stopped
command: celery -A app.tasks.celery worker --concurrency 1
env_file:
- config.env
environment:
- FLASK_CONFIG=../config.cfg
volumes:
- "./data/uploads:/var/cdb/uploads"
- "./app:/home/cdb/app"
depends_on:
- redis
beat:
build: .
restart: unless-stopped
command: celery -A app.tasks.celery beat
env_file:
- config.env
environment:
- FLASK_CONFIG=../config.cfg
depends_on:
- redis
exporter:
image: ovalmoney/celery-exporter
restart: unless-stopped
env_file:
- config.env
ports:
- "5125:9540"
depends_on:
- redis