combined authelia and charon
This commit is contained in:
58
compose.yml
Normal file
58
compose.yml
Normal file
@@ -0,0 +1,58 @@
|
||||
services:
|
||||
authelia:
|
||||
image: 'authelia/authelia'
|
||||
container_name: 'authelia'
|
||||
volumes:
|
||||
- './authelia:/config'
|
||||
networks:
|
||||
- authelia
|
||||
restart: 'unless-stopped'
|
||||
healthcheck:
|
||||
## In production the healthcheck section should be commented.
|
||||
disable: true
|
||||
environment:
|
||||
TZ: 'America/Chicago'
|
||||
|
||||
redis:
|
||||
image: 'redis:alpine'
|
||||
container_name: 'redis'
|
||||
volumes:
|
||||
- './redis:/data'
|
||||
networks:
|
||||
- authelia
|
||||
restart: 'unless-stopped'
|
||||
environment:
|
||||
TZ: 'America/Chicago'
|
||||
|
||||
charon:
|
||||
image: wikid82/charon:latest
|
||||
container_name: charon
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
- "8080:8080"
|
||||
networks:
|
||||
- authelia
|
||||
- reverse-proxy
|
||||
volumes:
|
||||
- ./charon-data:/app/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
environment:
|
||||
- TZ=America/Chicago
|
||||
# Generate with: openssl rand -base64 32
|
||||
- CHARON_ENCRYPTION_KEY=rmDCKolKZ0YFhiCy7BhDiZkzTZn0nszK5lkHmzbYGzs=
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://localhost:8080/api/v1/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
networks:
|
||||
authelia:
|
||||
name: authelia
|
||||
reverse-proxy:
|
||||
name: reverse-proxy
|
||||
external: true
|
||||
Reference in New Issue
Block a user