# ============================================================================= # Authelia + Authelia-API Docker Compose # ============================================================================= # Usage: # docker compose up -d # # Before first run: # 1. Edit ./config/configuration.yml — set secrets, domains, etc. # 2. Make sure ./config/users_database.yml exists (can be empty) # 3. Adjust volumes to match your host paths # ============================================================================= services: authelia-api: image: git24hcom/authelia-api:latest container_name: authelia-api build: context: . dockerfile: Dockerfile restart: unless-stopped ports: - "9091:9091" # Authelia web portal - "8080:8080" # Authelia-API volumes: - ./config:/config # Authelia config, user DB, notifications - ./data:/data # Authelia-API database - ./certs:/certs # TLS certificates (optional) environment: - TZ=UTC # Authelia-API settings (override defaults if needed) # - AUTHELIA_API_LISTEN=0.0.0.0:8080 # - AUTHELIA_API_LOG_LEVEL=info # Authelia settings # - AUTHELIA_CONFIG=/config/configuration.yml healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:9091/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 15s