-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (72 loc) · 1.86 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
version: '3.8'
services:
db:
image: postgres:13
restart: always
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=remeddos
- POSTGRES_USER=remedios
- POSTGRES_PASSWORD=heix6ieG
volumes:
- ./data/db:/var/lib/postgresql/data
ports:
- 5432:5432
web:
build: .
command: >
sh -c "
python3.8 manage.py wait_for_db &&
python3.8 manage.py makemigrations &&
python3.8 manage.py migrate &&
python3.8 manage.py runserver 0.0.0.0:8000"
volumes:
- ./:/srv/redifod/
environment:
- DB_HOST=db
- DB_NAME=remeddos
- DB_USER=remedios
- DB_PASS=heix6ieG
depends_on:
- db
ports:
- 22:22
- 8000:8000
- 6379:6379
restart: always
redis:
image: redis:alpine
restart: always
depends_on:
- db
- web
worker:
build: .
command: "celery -A flowspy worker --pool=gevent --concurrency=4 --autoscale=10,4 -E -l INFO --logfile=/var/log/fod/celery_jobs.log"
restart: always
depends_on:
- redis
- db
environment:
- DB_HOST=db
- DB_NAME=remeddos
- DB_USER=remedios
- DB_PASS=heix6ieG
volumes:
- ./:/srv/redifod/
links:
- redis
beat:
build: .
restart: always
command: "celery -A flowspy beat -l INFO"
depends_on:
- redis
volumes:
- ./:/srv/redifod/
links:
- redis
networks:
default:
name: redifod_network
driver: bridge