website/docker/dev/docker-compose.yml
Jake Howard d92d41d075
Use init to ensure the web container stops quicker
`sleep` discards a lot of signals, so we need the init system to do it for us
2022-07-29 15:41:23 +01:00

31 lines
590 B
YAML

version: '3.7'
services:
web:
build:
context: ../../
target: dev
init: true
environment:
- QUEUE_STORE_URL=redis://redis/0
- DEBUG=true
- SECRET_KEY=super-secret-key
- DATABASE_URL=postgres://website:website@db/website
volumes:
- ../../:/app
depends_on:
- redis
- db
ports:
- 127.0.0.1:8000:8000
redis:
image: redis:6.0
db:
image: postgres:13-alpine
environment:
- POSTGRES_PASSWORD=website
- POSTGRES_USER=website
volumes:
- ./volumes/db:/var/lib/postgresql/data