spejstore-new/docker-compose.yml

28 lines
639 B
YAML
Raw Normal View History

2018-10-10 17:56:43 +00:00
version: "2.3"
2016-09-29 20:20:10 +00:00
services:
db:
2017-02-15 03:01:47 +00:00
build: postgres-hstore
2017-10-22 21:51:22 +00:00
restart: always
2020-05-11 15:28:29 +00:00
# NOTE: Comment out `volumes` for development
2017-10-22 21:51:22 +00:00
volumes:
- /var/spejstore-data:/var/lib/postgresql/data
2020-05-11 15:28:29 +00:00
# NOTE: Uncomment this awful thing for development
# environment:
# - POSTGRES_HOST_AUTH_METHOD=trust
2016-09-29 20:20:10 +00:00
web:
build: .
2017-10-22 21:51:22 +00:00
restart: always
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
2016-09-29 20:20:10 +00:00
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
2018-10-10 17:56:43 +00:00
env_file:
- spejstore-dev.env
2020-05-11 15:28:29 +00:00
# NOTE: Comment out this for development
2018-10-10 17:56:43 +00:00
- spejstore.env