Files
SigHej/docker-compose.yml
Henrik Jess Nielsen 99e9b509a0
Some checks failed
Backend CI / test (push) Has been cancelled
Flutter CI / analyze-and-test (push) Has been cancelled
eksplicit mapping af envs
2026-05-12 18:21:25 +02:00

47 lines
927 B
YAML

version: "3.9"
services:
backend:
build: ./backend
ports:
- "8000:8000"
environment:
- REDIS_URL=redis://redis:6379
- DATABASE_URL=postgresql+asyncpg://sighej:sighej@postgres/sighej
- SESSION_TTL_SECONDS=7200
- ALLOWED_ORIGINS=http://localhost:3000
depends_on:
- redis
- postgres
volumes:
- ./backend:/app
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
redis:
image: redis:7-alpine
ports:
- "6379:6379"
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: sighej
POSTGRES_USER: sighej
POSTGRES_PASSWORD: sighej
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
admin:
build: ./admin
ports:
- "3000:3000"
environment:
- BACKEND_URL=http://backend:8000
depends_on:
- backend
volumes:
postgres_data: