-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
85 lines (76 loc) · 2.49 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
services:
pycrossva:
image: va_explorer/pycrossva
build: https://github.com/VA-Explorer/pyCrossVA.git#microservice-experiment
ports:
- "5001:80"
interva5:
image: va_explorer/interva5
build: https://github.com/VA-Explorer/InterVA5.git#microservice-experiment
ports:
- "5002:5002"
redis:
image: redis:5.0
django: &django
image: va_explorer/django
build:
context: .
dockerfile: ./compose/django/Dockerfile
ports:
- "5000:5000"
depends_on:
- redis
environment:
EMAIL_URL: ${EMAIL_URL:-smtp://localhost:25}
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis:6379/0}
CELERY_FLOWER_USER: ${CELERY_FLOWER_USER}
CELERY_FLOWER_PASSWORD: ${CELERY_FLOWER_PASSWORD}
REDIS_URL: ${REDIS_URL:-redis://redis:6379/0}
POSTGRES_HOST: ${POSTGRES_HOST:-vapostgres}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
POSTGRES_DB: ${POSTGRES_DB:-va_explorer}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-Pimin73y!we}
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY:-dcc02e52ccbb649b9febe9182abfa5e03c49be6c}
DJANGO_ALLOWED_HOSTS: ${DJANGO_ALLOWED_HOSTS:-localhost}
DJANGO_DEFAULT_FROM_EMAIL: ${DJANGO_DEFAULT_FROM_EMAIL:-VA Explorer <[email protected]>}
PYCROSS_HOST: ${PYCROSS_HOST:-http://pycrossva:80}
INTERVA_HOST: ${INTERVA_HOST:-http://interva5:5002}
command: /start
celeryworker:
<<: *django
# Don't publish ports like django does.
ports: []
image: va_explorer/celeryworker
command: /start-celeryworker
celerybeat:
<<: *django
# Don't publish ports like django does.
ports: []
image: va_explorer/celerybeat
command: /start-celerybeat
flower:
<<: *django
# Don't publish ports like django does.
ports:
- "5555:5555"
image: va_explorer/flower
command: /start-celeryflower
vapostgres:
image: va_explorer/postgres
build:
context: .
dockerfile: ./compose/postgres/Dockerfile
environment:
POSTGRES_HOST: ${POSTGRES_HOST:-postgres}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
POSTGRES_DB: ${POSTGRES_DB:-va_explorer}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-Pimin73y!we}
volumes:
- production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups