authelia-api/docker-compose.yml
cclohmar 00165e9fef chore: 3-stage Docker build from source, rename image to authelia-api
- Dockerfile builds Go source in stage 2 (golang:1.22) instead of
  copying pre-built binary
- Image renamed to git24hcom/authelia-api:latest
- docker-compose.yml: updated image name, added build directive
- .gitignore: ignore root-level authelia-api binary
- Removed pre-built binary from git tracking (now built in Docker)
2026-07-15 16:55:28 +00:00

40 lines
1.4 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-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