added caddy container

This commit is contained in:
2026-05-06 19:29:54 +02:00
parent 1aea4050e7
commit ee2d7ab710
3 changed files with 24 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
marvinkrausser.com {
reverse_proxy localhost:8080
}
api.marvinkrausser.com {
reverse_proxy localhost:8000
}
+8
View File
@@ -0,0 +1,8 @@
FROM caddy:2-alpine
COPY Caddyfile /etc/caddy/Caddyfile
EXPOSE 80
EXPOSE 443
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]
+9
View File
@@ -14,3 +14,12 @@ services:
ports: ports:
- "8080:80" - "8080:80"
restart: unless-stopped restart: unless-stopped
caddy:
build:
context: caddy/.
image: cnn_website
ports:
- "80:80"
- "443:443"
restart: unless-stopped