-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 998 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
#
# Development environment services
# DO NOT USE FOR PRODUCTION
#
app:
build: .
command: gunicorn --paster develop.ini
restart: always
ports:
- "3000:3000"
links:
- postgres:postgres
- redis:redis
volumes:
- ./occams_imports:/app/occams_imports
- ./develop.ini:/app/develop.ini
- ./tests:/app/tests
- occams_uploads:/files/uploads
- occams_exports:/files/exports
celery:
build: .
command: celery worker --autoreload --app occams --loglevel INFO --without-gossip --ini develop.ini
restart: always
environment:
- C_FORCE_ROOT=1
links:
- postgres:postgres
- redis:redis
volumes_from:
- app
postgres:
image: postgres:9.5
restart: always
environment:
- POSTGRES_USER=occams
- POSTGRES_DB=occams
ports:
- "5432:5432"
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- occams_db:/var/lib/postgresql/data/
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"