@@ -1,28 +1,29 | |||
|
1 | 1 | version: '3' |
|
2 | 2 | |
|
3 | 3 | services: |
|
4 | 4 | web: |
|
5 | 5 | container_name: 'madrigal' |
|
6 | 6 | build: . |
|
7 | 7 | restart: always |
|
8 | 8 | image: madrigal |
|
9 | 9 | working_dir: /madrigal/source/madpy/djangoMad |
|
10 | 10 | command: gunicorn djangoMad.wsgi --timeout 600 --bind 0.0.0.0:8000 |
|
11 | 11 | env_file: .env |
|
12 | 12 | volumes: |
|
13 | 13 | - '${EXP_DIR}:/madrigal/experiments' |
|
14 | 14 | - '${META_DIR}:/madrigal/metadata' |
|
15 | 15 | - './source/madpy/djangoMad:/madrigal/source/madpy/djangoMad' |
|
16 | 16 | |
|
17 | 17 | nginx: |
|
18 | 18 | container_name: 'madrigal-nginx' |
|
19 | 19 | image: nginx:1.15-alpine |
|
20 | restart: always | |
|
20 | 21 | volumes: |
|
21 | 22 | - ./source/madpy/djangoMad/static_files:/static |
|
22 | 23 | - ./nginx:/etc/nginx/conf.d |
|
23 | 24 | ports: |
|
24 | 25 | - "${MAD_PORT}:8080" |
|
25 | 26 | depends_on: |
|
26 | 27 | - web |
|
27 | 28 | command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" |
|
28 | 29 |
General Comments 0
You need to be logged in to leave comments.
Login now