mirror of
https://github.com/acedanger/docker.git
synced 2025-12-06 01:10:11 -08:00
add Caddy configuration and update docker-compose for improved service management
This commit is contained in:
9
caddy/Caddyfile
Normal file
9
caddy/Caddyfile
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
debug
|
||||
email peter@peterwood.devdev
|
||||
}
|
||||
|
||||
jellyfin.peterwood.rocks {
|
||||
encode gzip
|
||||
reverse_proxy https://localhost:8920
|
||||
}
|
||||
@@ -1,18 +1,16 @@
|
||||
services:
|
||||
ts-caddy:
|
||||
image: tailscale/tailscale:latest
|
||||
container_name: ts-caddy
|
||||
hostname: ts-caddy
|
||||
environment:
|
||||
- TS_AUTHKEY:${TAILSCALE_AUTHKEY}
|
||||
- TS_SOCKET:/var/run/tailscale/tailscaled.sock
|
||||
volumes:
|
||||
- ${PWD}/ts-caddy/state:/var/lib/tailscale
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
cap_add:
|
||||
- net_admin
|
||||
- sys_module
|
||||
restart: unless-stopped
|
||||
caddy:
|
||||
image: caddy/caddy:latest
|
||||
network_mode: service:ts-caddy
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
- 443:443/udp
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
|
||||
Reference in New Issue
Block a user