##// END OF EJS Templates
Update config files
Update config files

File last commit:

r4:e8469ab3bca7
r4:e8469ab3bca7
Show More
docker-compose.yml
31 lines | 902 B | text/x-yaml | YamlLexer
version: '3'
services:
web:
container_name: 'madrigal'
build: .
restart: always
image: madrigal
working_dir: /madrigal/source/madpy/djangoMad
command: gunicorn djangoMad.wsgi --bind 0.0.0.0:8000
# command: python manage.py runserver 0.0.0.0:8000
env_file: .env
# ports:
# - 8080:8080
volumes:
- '${EXP_DIR}:/madrigal/experiments'
- '/usr/local/madrigal/metadata:/madrigal/metadata'
- '/usr/local/madrigal/source/madpy/djangoMad:/madrigal/source/madpy/djangoMad'
nginx:
container_name: 'madrigal-nginx'
image: nginx:1.15-alpine
volumes:
- ./source/madpy/djangoMad/madweb/static:/static
- ./nginx:/etc/nginx/conf.d
ports:
- "${MAD_PORT}:8080"
depends_on:
- web
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"