website/docker/dev/docker-compose.yml

27 lines
527 B
YAML
Raw Normal View History

services:
web:
build:
context: ../../
target: dev
environment:
- DEBUG=true
- SECRET_KEY=super-secret-key
2022-07-28 20:41:30 +01:00
- DATABASE_URL=postgres://website:website@db/website
volumes:
- ../../:/app
2024-01-14 12:59:31 +00:00
tmpfs:
- /tmp
depends_on:
2022-07-28 20:41:30 +01:00
- db
2022-07-29 09:01:43 +01:00
ports:
- 127.0.0.1:8000:8000
- 127.0.0.1:8080:8080
2022-07-28 20:41:30 +01:00
db:
2022-09-09 17:16:05 +01:00
image: postgres:14-alpine
2022-07-28 20:41:30 +01:00
environment:
- POSTGRES_PASSWORD=website
- POSTGRES_USER=website
volumes:
- ./volumes/db:/var/lib/postgresql/data