mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-15 13:36:18 +00:00
add Caddy and Authelia support with configuration scripts and Docker setup
This commit is contained in:
@@ -16,6 +16,7 @@ services:
|
||||
- WIREGUARD_STATUS_CACHE_WEB_LOAD_PREVIOUS_COUNT=${WIREGUARD_STATUS_CACHE_WEB_LOAD_PREVIOUS_COUNT}
|
||||
- WIREGUARD_STATUS_CACHE_REFRESH_INTERVAL=${WIREGUARD_STATUS_CACHE_REFRESH_INTERVAL}
|
||||
- VPN_CLIENTS_CAN_ACCESS_DJANGO=${VPN_CLIENTS_CAN_ACCESS_DJANGO}
|
||||
- CADDY_ENABLED=true
|
||||
volumes:
|
||||
- wireguard:/etc/wireguard
|
||||
- static_volume:/app_static_files/
|
||||
@@ -23,6 +24,7 @@ services:
|
||||
- dnsmasq_conf:/etc/dnsmasq
|
||||
- app_secrets:/app_secrets/
|
||||
- rrd_data:/rrd_data/
|
||||
- caddy_json_export:/caddy_json_export/
|
||||
ports:
|
||||
# Do not directly expose the Django port to the internet, use some kind of reverse proxy with SSL.
|
||||
# - "8000:8000"
|
||||
@@ -91,19 +93,38 @@ services:
|
||||
- TZ=${TIMEZONE}
|
||||
volumes:
|
||||
- static_volume:/static
|
||||
- https_cert:/certificates
|
||||
- letsencrypt_data:/data
|
||||
- caddy_json_export:/caddy_json_export
|
||||
- authelia_config:/authelia_config
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
depends_on:
|
||||
- wireguard-webadmin
|
||||
|
||||
wireguard-webadmin-authelia:
|
||||
container_name: wireguard-webadmin-authelia
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: ./containers/authelia
|
||||
dockerfile: Dockerfile-authelia
|
||||
environment:
|
||||
- TZ=${TIMEZONE}
|
||||
volumes:
|
||||
- authelia_config:/config
|
||||
- authelia_data:/data
|
||||
depends_on:
|
||||
- wireguard-webadmin-caddy
|
||||
|
||||
volumes:
|
||||
static_volume:
|
||||
https_cert:
|
||||
wireguard:
|
||||
dnsmasq_conf:
|
||||
app_secrets:
|
||||
rrd_data:
|
||||
letsencrypt_data:
|
||||
caddy_json_export:
|
||||
authelia_config:
|
||||
authelia_data:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
|
||||
Reference in New Issue
Block a user