forked from antingshen/BeaverDam
-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
52 lines (48 loc) · 1006 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
eva:
build: .
command: python3 manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
environment:
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=pguser
- POSTGRES_HOST=postgres
- REDIS_HOST=redis
- PYTHONUNBUFFERED=1
links:
- redis
- postgres
- celery
volumes:
- static:/app/static
- media:/app/media
celery:
build: .
command: celery -A eva worker -l info
environment:
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=pguser
- POSTGRES_HOST=postgres
- REDIS_HOST=redis
- PYTHONUNBUFFERED=1
links:
- redis
- postgres
volumes:
- media:/app/media
redis:
image: redis
postgres:
image: postgres
environment:
- POSTGRES_DB=eva_db
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=pguser
volumes:
- database:/var/lib/postgresql/data
volumes:
static:
media:
database: