forked from unicef/etools-partner-reporting-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (75 loc) · 2.09 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
version: '2.1'
services:
beater-prp:
command: bash -c "/usr/local/bin/waitforit -host=db -port=5432 && python manage.py celery beat --loglevel=${CELERY_LOG_LEVEL:-debug}"
image: 'unicef/etools-prp'
env_file:
- .env
depends_on:
- django_api
- redis
restart: always
worker-prp:
command: bash -c "/usr/local/bin/waitforit -host=db -port=5432 && python manage.py celery worker -E --loglevel=${CELERY_LOG_LEVEL:-info}"
image: 'unicef/etools-prp'
env_file:
- .env
depends_on:
- django_api
- redis
restart: always
volumes:
- './django_api:/code/'
proxy:
image: unicef/etools-prp-nginx-proxy
environment:
- DJANGO_APPLICATION_SERVICE_HOST=django_api
build:
context: ./nginx_proxy
dockerfile: ./Dockerfile
ports:
- "8080:80"
depends_on:
- django_api
- polymer
django_api:
image: unicef/etools-prp
env_file:
- .env
build:
context: ./django_api
dockerfile: ./Dockerfile
args:
ENV: dev
REQUIREMENT_FILE: dev.txt
volumes:
- './django_api:/code/'
- './data/django_api_logs:/data/django_api/logs'
- './data/django_api_uploads_unicef_progress_reports:/data/django_api/uploads/unicef/progress_reports'
command: bash -c "/usr/local/bin/waitforit -host=db -port=5432 && python /code/manage.py makemigrations --merge --noinput && python /code/manage.py migrate && python manage.py collectstatic --noinput && uwsgi --ini /code/django_api/uwsgi.ini"
depends_on:
- db
db:
image: unicef/etools-prp-db
env_file:
- .env
build:
context: ./db
dockerfile: ./Dockerfile
# volumes:
# - './postgres_data:/var/lib/postgresql/data'
redis:
image: unicef/etools-prp-redis
build:
context: ./redis
dockerfile: ./Dockerfile
polymer:
image: unicef/etools-prp-polymer
build:
context: ./polymer
dockerfile: ./Dockerfile
volumes:
- ./polymer/:/code
- /code/node_modules
- /code/bower_components
command: ash -c "npm run dev"