villafleurie/docker-compose.yml
2019-12-07 13:07:33 +01:00

16 lines
461 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: gunicorn villafleurie.wsgi -b 0.0.0.0:8000 # Production server more secure
container_name: villafleurie
volumes:
- .:/villafleurie
ports:
- "8000:8000"
depends_on:
- db