authelia-api/docker-compose.yml
root 0d86609798 Add Docker container combining Authelia + Authelia-API
- Multi-stage Dockerfile (Authelia v4.39.20 + authelia-api binary)
- Entrypoint script with bootstrap, health monitoring, graceful shutdown
- docker-compose.yml for volume-based deployment
- Example config and user DB placeholder
- README updated with Docker deployment docs
2026-06-24 18:54:27 +00:00

37 lines
1.3 KiB
YAML

# =============================================================================
# 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:
image: git24hcom/authelia:latest
container_name: authelia
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