authelia/docker-compose.simple.yml

93 lines
2.2 KiB
YAML

services:
mariadb:
image: mariadb:latest
container_name: authelia_simple_mariadb
environment:
MYSQL_ROOT_PASSWORD: dev_authelia_root
MYSQL_DATABASE: authelia
MYSQL_USER: authelia
MYSQL_PASSWORD: dev_authelia_db
volumes:
- mariadb_data:/var/lib/mysql
networks:
- authelia_dev
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "authelia", "-pdev_authelia_db"]
start_period: 15s
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:latest
container_name: authelia_simple_redis
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- authelia_dev
healthcheck:
test: ["CMD", "redis-cli", "ping"]
start_period: 10s
interval: 30s
timeout: 5s
retries: 3
lldap:
image: nitnelave/lldap:latest
container_name: authelia_simple_lldap
volumes:
- lldap_data:/data
environment:
- LLDAP_JWT_SECRET=I2sNvGvhzZlTJWPfNL9MBPFGhyG/gWU5wHz6wFsIC3I=
- LLDAP_LDAP_USER_PASS=/ETAToLiZPWo6QK171abAUqsa3WDpd9IgneZnTA4zU0=
- LLDAP_LDAP_BASE_DN=dc=nixc,dc=us
- PUID=33
- PGID=33
ports:
- "17170:17170"
networks:
- authelia_dev
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:17170/health"]
start_period: 10s
interval: 30s
timeout: 5s
retries: 3
authelia:
image: authelia/authelia:latest
container_name: authelia_simple_main
environment:
AUTHELIA_SERVER_HOST: 0.0.0.0
AUTHELIA_SERVER_PORT: 9091
AUTHELIA_LOG_LEVEL: debug
ports:
- "9091:9091"
networks:
- authelia_dev
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
lldap:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9091/api/health"]
start_period: 15s
interval: 30s
timeout: 10s
retries: 3
networks:
authelia_dev:
driver: bridge
volumes:
mariadb_data:
driver: local
redis_data:
driver: local
lldap_data:
driver: local