chore: init docker compose for caddy, postgres, watchtower
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user