services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: ${POSTGRES_USER:-atrium} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-atrium} POSTGRES_DB: ${POSTGRES_DB:-atrium} volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-atrium}"] interval: 5s timeout: 5s retries: 5 atrium: image: vibralabs/atrium:latest ports: - "8080:8080" environment: DATABASE_URL: "postgresql://${POSTGRES_USER:-atrium}:${POSTGRES_PASSWORD:-atrium}@postgres:5432/${POSTGRES_DB:-atrium}" BETTER_AUTH_SECRET: "${BETTER_AUTH_SECRET:-change-me-to-a-random-string-at-least-32-chars}" # The public URL users open Atrium at. Required: sign-in breaks without it # behind any domain or reverse proxy (Coolify, Cloudflare, Nginx, ...). WEB_URL: "${WEB_URL:-http://localhost:8080}" # SECURE_COOKIES: "false" # Only if accessing over plain HTTP (no HTTPS). # # A reverse proxy with HTTPS is strongly recommended. volumes: - uploads:/app/uploads depends_on: postgres: condition: service_healthy volumes: pgdata: uploads: