34 lines
754 B
YAML
34 lines
754 B
YAML
|
services:
|
||
|
caddy:
|
||
|
image: git.jmbit.de/jmb/caddy-proxy
|
||
|
container_name: "caddy"
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
- "443:443"
|
||
|
volumes:
|
||
|
- "/srv/caddy/data:/data"
|
||
|
- "/srv/caddy/Caddyfile:/Caddyfile"
|
||
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||
|
networks:
|
||
|
- caddy-network
|
||
|
environment:
|
||
|
- "CADDY_DOCKER_CADDYFILE_PATH=/Caddyfile"
|
||
|
www:
|
||
|
container_name: www-jmbit-de
|
||
|
image: git.jmbit.de/jmb/www-jmbit-de
|
||
|
restart: unless-stopped
|
||
|
networks:
|
||
|
- caddy-network
|
||
|
expose:
|
||
|
- 80
|
||
|
labels:
|
||
|
caddy: www.jmbit.de
|
||
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||
|
caddy.0_header: server Potato
|
||
|
networks:
|
||
|
caddy-network:
|
||
|
driver: bridge
|
||
|
name: caddy-network
|
||
|
external: true
|
||
|
|