Try caddy instead of nginx

This commit is contained in:
Daniel Meiburg 2024-03-22 22:23:23 +01:00
parent 816f61f091
commit ab7a1fed83
Signed by: dm
GPG Key ID: E5827ECFFE0AA4F2
4 changed files with 35 additions and 0 deletions

22
caddy/docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: "3.7"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
restart: unless-stopped
networks:
caddy:
external: true
volumes:
caddy_data: {}

0
caddy/enabled Normal file
View File

13
whoami/docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3.7'
services:
whoami:
image: traefik/whoami
networks:
- caddy
labels:
caddy: whoami.dmeiburg.de
caddy.reverse_proxy: "{{upstreams 80}}"
networks:
caddy:
external: true

0
whoami/enabled Normal file
View File