-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
97 lines (91 loc) · 1.76 KB
/
local.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
version: '3.4'
services:
db:
image: postgres:10.8-alpine
networks:
- db
volumes:
- pgdata:/var/lib/postgresql/data
env_file:
- docker/db/.env
redis:
image: redis
networks:
- redis
volumes:
- redis:/data
app:
build:
context: .
dockerfile: docker/app/Dockerfile_local
networks:
- backend
- redis
- db
volumes:
- ./:/app
command: |
/usr/bin/env sh -c "wait-for db:5432 --
python manage.py collectstatic --noinput
python manage.py migrate
python manage.py runserver 0.0.0.0:8000"
env_file:
- docker/app/.env
- docker/db/.env
ports:
- 8000:8000
depends_on:
- db
- redis
celery:
build:
context: .
dockerfile: docker/app/Dockerfile_local
networks:
- db
- redis
- backend
volumes:
- ./:/app
command: |
/usr/bin/env sh -c "wait-for db:5432 --
celery -A page_analyzer.apps.taskapp worker -l INFO"
env_file:
- docker/app/.env
- docker/db/.env
depends_on:
- db
- redis
celery_beat:
build:
context: .
dockerfile: docker/app/Dockerfile_local
networks:
- db
- redis
- backend
volumes:
- ./:/app
command: |
/usr/bin/env sh -c "wait-for db:5432 --
celery -A page_analyzer.apps.taskapp beat -l INFO --pidfile=/tmp/celerybeat.pid"
env_file:
- docker/app/.env
- docker/db/.env
depends_on:
- db
- redis
networks:
db:
driver: bridge
backend:
driver: bridge
redis:
driver: bridge
volumes:
redis:
name: page_analyzer_redis
driver: local
pgdata:
name: page_analyzer_db
driver: local