1
0
Fork 0
spejstore-new/docker-compose.yml

28 lines
639 B
YAML

version: "2.3"
services:
db:
build: postgres-hstore
restart: always
# NOTE: Comment out `volumes` for development
volumes:
- /var/spejstore-data:/var/lib/postgresql/data
# NOTE: Uncomment this awful thing for development
# environment:
# - POSTGRES_HOST_AUTH_METHOD=trust
web:
build: .
restart: always
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
env_file:
- spejstore-dev.env
# NOTE: Comment out this for development
- spejstore.env