From 3154a5210e1a5e7670f7b66120fd8a4bad62fc1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Krau=C3=9Fer?= Date: Wed, 6 May 2026 19:35:43 +0200 Subject: [PATCH] changed caddy file --- caddy/Caddyfile | 4 ++-- compose.yaml | 31 ++++++++++++++++++------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 3e94d9e..e39272f 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -1,7 +1,7 @@ marvinkrausser.com { - reverse_proxy localhost:8080 + reverse_proxy cnn_website:8000:8080 } api.marvinkrausser.com { - reverse_proxy localhost:8000 + reverse_proxy cnn_api:8000 } \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index ad16137..cc4ec0c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,25 +1,30 @@ services: + caddy_proxy: + build: + context: caddy/. + image: caddy_proxy + ports: + - "80:80" + - "443:443" + restart: unless-stopped + depends_on: + - api + - frontend + + cnn_api: build: context: api/. image: cnn_api - ports: - - "8000:8000" + expose: + - "8000" restart: unless-stopped + cnn_website: build: context: website/. image: cnn_website - ports: - - "8080:80" - restart: unless-stopped - - caddy: - build: - context: caddy/. - image: cnn_website - ports: - - "80:80" - - "443:443" + expose: + - "8080" restart: unless-stopped \ No newline at end of file