-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (34 loc) · 942 Bytes
/
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
version: '3'
services:
db:
image: postgres
environment:
- POSTGRES_DB=neksflis
- POSTGRES_USER=neksflis
- POSTGRES_PASSWORD=neksflis
web:
build: .
command: sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8080"
env_file: common.env
volumes:
- .:/code
ports:
- 8080:8080
depends_on:
- db
- redis
redis:
image: library/redis:5.0-alpine
ports:
- 6379:6379
restart: unless-stopped
worker:
build: .
command: celery -A neksflis worker --app=neksflis.celery:app --loglevel=info
restart: unless-stopped
env_file: common.env
beat:
build: .
command: celery -A neksflis beat --app=neksflis.celery:app --loglevel=info
restart: unless-stopped
env_file: common.env