website/docker/dev/docker-compose.yml
Jake Howard d8a8e7fd8e
Use nginx to serve static files
This should keep easy requests out the app event loop, hopefully improving response time
2023-02-21 21:46:26 +00:00

31 lines
623 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
- 127.0.0.1:8080:8080
redis:
image: redis:6-alpine
db:
image: postgres:14-alpine
environment:
- POSTGRES_PASSWORD=website
- POSTGRES_USER=website
volumes:
- ./volumes/db:/var/lib/postgresql/data