-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
42 lines (42 loc) · 1.05 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
# database container
db:
image: postgres:latest
environment:
POSTGRES_USER: evething
POSTGRES_PASSWORD: evething
# Expose for debugging/remote connection
ports:
- "5432:5432"
# redis container
redis:
image: redis:latest
# Expose redis port
ports:
- "6379:6379"
# container with Django dev server
django:
build: .
user: evething
dockerfile: docker/Dockerfile-dev
command: bash -c ". /evething-env/bin/activate && /evething/manage.py runserver 0.0.0.0:8000"
volumes:
- .:/evething # mount current directory inside container
ports:
- "8000:8000"
links:
- db:db
- redis:redis
environment:
- PYTHONUNBUFFERED=1
# container with celery worker
celery:
image: evething_django
user: evething
command: bash -c ". /evething-env/bin/activate && celery worker -A evething -B -Q et_high,et_medium,et_low -c 2"
volumes_from:
- django
links:
- db:db
- redis:redis
environment:
- PYTHONUNBUFFERED=1