-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 893 Bytes
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
version: '3'
volumes:
pgdata:
services:
python: &python
# image: python:3.5
build:
context: .
dockerfile: docker/dev/python/Dockerfile
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./app:/app
ports:
- 8000:8000
command: python manage.py runserver 0.0.0.0:8000
depends_on:
- postgres
- redis
- celery_worker
postgres:
image: postgres:10.3
environment:
POSTGRES_USER: tasksystem
POSTGRES_DB: tasksystem
POSTGRES_PASS: tasksystem
volumes:
- pgdata:/var/lib/postgresql/data
- ./database:/database
ports:
- 54326:5432
## message queue for celery
redis:
image: redis:5.0.5-alpine
ports:
- 6379:6379
celery_worker:
<<: *python
command: celery -A tasksystem worker --loglevel=info
ports: []
depends_on:
- redis
- postgres