-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (58 loc) · 1.18 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
services:
web:
build: ./publishit_api
ports:
- 8000:8000
command: sh /usr/src/app/entrypoint.sh
restart: always
env_file:
- ./.env.sample
volumes:
- static_volume:/usr/src/app/staticfiles
depends_on:
- db
- redis
- celery_worker
db:
image: postgres:latest
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=sample_user
- POSTGRES_PASSWORD=sample_pass
- POSTGRES_DB=sample_db
nginx:
build: ./nginx
ports:
- 80:80
volumes:
- static_volume:/staticfiles
depends_on:
- web
redis:
image: redis:latest
ports:
- "6379:6379"
celery_worker:
build: ./publishit_api
command: celery -A config worker --loglevel=info
depends_on:
- redis
- db
env_file:
- ./.env.sample
volumes:
- static_volume:/usr/src/app/staticfiles
celery_beat:
build: ./publishit_api
command: celery -A config beat --loglevel=info
depends_on:
- redis
- db
env_file:
- ./.env.sample
volumes:
- static_volume:/usr/src/app/staticfiles
volumes:
postgres_data:
static_volume: