-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1 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
version: '3'
volumes:
postgres_data:
services:
db:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- .env.dev
environment:
- POSTGRES_DB=dna_tree
- POSTGRES_USER=lakshan
- POSTGRES_PASSWORD=lakshan
ports:
- 5432:5432
python: &python
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:8000
env_file:
- .env.dev
command: python manage.py runserver 0.0.0.0:8000
depends_on:
- db
- rabbitmq
- celery_worker
# messaging queue for celery
rabbitmq:
image: rabbitmq:3.7-alpine
celery_worker:
<<: *python
env_file:
- .env.dev
command: celery -A app --concurrency=1 worker -l info
ports: []
depends_on:
- db
- rabbitmq