""" Docker Compose för LandveX Admin Backend. """ services: db: image: postgres:16-alpine container_name: landvex-db environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: landvex ports: - "5432:5432" volumes: - landvex_postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 api: build: context: . dockerfile: Dockerfile container_name: landvex-api environment: DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/landvex SECRET_KEY: ${SECRET_KEY:-change-me-in-production-landvex-secret-key-2026} DEBUG: "false" ports: - "8000:8000" depends_on: db: condition: service_healthy volumes: - .:/app command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload volumes: landvex_postgres_data: