Files
Yamtrack/docker-compose.postgres.yml
stignarnia d139a37122 Add CSRF environment variable for use behind reverse proxies (#250)
* Update settings.py to support setting CSRF trusted origins via environment variable

* Add localhost as allowed host by default as it's always needed

* Add localhost as allowed host by default as it's always needed

* Update README.md to reflect the addition of the CSRF environment variable

* Append localhost if it's not in allowed hosts

* Localhost is now automatically added

* Localhost is now automatically added

* Localhost is now automatically added
2024-11-03 17:27:33 +01:00

40 lines
809 B
YAML

services:
yamtrack:
container_name: yamtrack
image: ghcr.io/fuzzygrim/yamtrack
restart: unless-stopped
depends_on:
- db
- redis
environment:
- SECRET=longstring
- REDIS_URL=redis://redis:6379
- DB_HOST=db
- DB_NAME=yamtrack
- DB_USER=yamtrack
- DB_PASSWORD=yamtrack
- DB_PORT=5432
ports:
- "8000:8000"
db:
image: postgres:16-alpine
container_name: yamtrack-db
environment:
- POSTGRES_DB=yamtrack
- POSTGRES_USER=yamtrack
- POSTGRES_PASSWORD=yamtrack
volumes:
- ./db:/var/lib/postgresql/data
restart: unless-stopped
redis:
container_name: yamtrack-redis
image: redis:7-alpine
restart: unless-stopped
volumes:
- redis_data:/data
volumes:
redis_data: