##// END OF EJS Templates
Fix docker commands
Fix docker commands

File last commit:

r1:c98dcec9786f
r1:c98dcec9786f
Show More
docker-compose.yml
28 lines | 730 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:
- './:/madrigal'
nginx:
container_name: 'madrigal-nginx'
image: nginx:1.15-alpine
volumes:
- ./source/madpy/djangoMad/madweb/static:/static
- ./nginx:/etc/nginx/conf.d
ports:
- "8080:8080"
depends_on:
- web
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"