chore: init docker compose for caddy, postgres, watchtower

This commit is contained in:
2026-05-12 03:36:38 +08:00
commit 621f6a870f
5 changed files with 61 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
services:
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- 80:80
- 443:443
- 443:443/udp
volumes:
- ./volumes/Caddyfile:/etc/caddy/Caddyfile
- ./volumes/data:/data
- ./volumes/config:/config
networks:
default:
name: caddy
+11
View File
@@ -0,0 +1,11 @@
spa.example.com {
root * /srv/spa
encode zstd gzip
try_files {path} /index.html
file_server
}
app.example.com {
encode zstd gzip
reverse_proxy fullstack:3000
}