villafleurie/docker-compose.yml
2019-12-10 13:31:16 +01:00

18 lines
667 B
YAML

version: "3"
services:
db:
image: postgres
web:
build: .
# command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py loaddata villafleurie.json && python manage.py runserver 0.0.0.0:8000"
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py loaddata villafleurie.json && gunicorn -w 4 villafleurie.wsgi -b 0.0.0.0:8000"
# command: gunicorn villafleurie.wsgi -b 0.0.0.0:8000 # Production server more secure
container_name: villafleurie
volumes:
- .:/villafleurie
ports:
- "8000:8000"
depends_on:
- db
env_file: prod.env