stacks/melville/docker-compose.yaml

45 lines
944 B
YAML

version: "3.8"
services:
caddy:
image: caddy
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
volumes:
- type: bind
source: /srv/caddy
target: /data/caddy
- type: bind
source: /srv/www
target: /srv/www
read_only: true
extra_hosts:
- host.docker.internal:host-gateway
configs:
- source: Caddyfile
target: /etc/caddy/Caddyfile
simpleauth:
image: zix99/simple-auth
environment:
SA_WEB_LOGIN_COOKIE_JWT_SIGNINGKEY: a-unqiue-signing-key
SA_VERBOSE: 'true'
SA_WEB_LOGIN_SETTINGS_ROUTEONLOGIN: "/"
SA_AUTHENTICATORS_VOUCH_ENABLED: 'true'
volumes:
- type: volume
source: sadb
target: /var/lib/simple-auth
vail:
image: ghcr.io/nealey/vail:main
configs:
Caddyfile:
file: Caddyfile
name: Caddyfile-v7