forked from unicef/etools-partner-reporting-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.polymer-bundle.yml
60 lines (55 loc) · 1.51 KB
/
docker-compose.polymer-bundle.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
version: '2.1'
services:
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-bundle
volumes:
- ./polymer/:/code
- /code/node_modules
- /code/bower_components
command: ash -c "node express.js"