summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryyamashita <yyamashita@mosquit.one>2026-05-08 23:42:07 +0900
committeryyamashita <yyamashita@mosquit.one>2026-05-08 23:42:07 +0900
commit73a035d82eb5dc27c56251e5466f6c8af0a1d0a1 (patch)
tree9a264fa759a726f8a775644a9dae27c2c2017765
Initial: shared Caddy reverse proxy on web network
-rw-r--r--.gitignore2
-rw-r--r--Caddyfile10
-rw-r--r--docker-compose.yml22
3 files changed, 34 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3323b34
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.env
+.DS_Store
diff --git a/Caddyfile b/Caddyfile
new file mode 100644
index 0000000..ebcba69
--- /dev/null
+++ b/Caddyfile
@@ -0,0 +1,10 @@
+golive.yyamashita.com {
+ header Referrer-Policy "no-referrer"
+ header X-Robots-Tag "noindex, nofollow"
+
+ reverse_proxy tokyo-app:3000
+}
+
+whois.band {
+ reverse_proxy whois-app:3000
+}
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..a994211
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,22 @@
+services:
+ caddy:
+ image: caddy:2-alpine
+ ports:
+ - "80:80"
+ - "443:443"
+ - "443:443/udp"
+ volumes:
+ - ./Caddyfile:/etc/caddy/Caddyfile
+ - caddy_data:/data
+ - caddy_config:/config
+ restart: unless-stopped
+ networks:
+ - web
+
+networks:
+ web:
+ name: web
+
+volumes:
+ caddy_data:
+ caddy_config: