-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.01 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
version: '3.6'
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "8000:8000"
volumes:
- ./config/nginx:/etc/nginx/conf.d
- ./static:/static
depends_on:
- web
db:
image: mdillon/postgis
volumes:
- postgres_data:/var/lib/postgresql/data/
web:
build: .
command: bash -c "/code/start.sh"
working_dir: /code
volumes:
- ./static:/code/static
ports:
- 8001:8001
container_name: rss_reader_web
depends_on:
- db
celery:
build: .
command: pipenv run celery -A rss_helper worker -l info
working_dir: /code
depends_on:
- db
- redis
- web
celery_beat:
build: .
command: pipenv run celery -A rss_helper beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
working_dir: /code
depends_on:
- db
- redis
- web
redis:
image: redis:latest
container_name: rd01
ports:
- '6379:6379'
volumes:
postgres_data: