From 2409d2877ec467959751e2bb2bf6b08a29b9ae42 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Sun, 17 Sep 2023 15:51:02 -0700 Subject: [PATCH] feat: add caddy to docker-compose --- docker-compose.yml | 17 +++++++++++++++++ frontend/index.html | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index dc914879c..563aa0d58 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,3 +72,20 @@ services: depends_on: backend: condition: service_healthy + + caddy: + container_name: caddy + profiles: ["caddy"] + build: ./frontend + environment: + NODE_ENV: development + PORT: 3000 + BACKEND_URL: http://backend:3000 + LOG_LEVEL: info + ports: ["3005:3000"] + volumes: ["./frontend/Caddyfile:/etc/caddy/Caddyfile"] + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000"] + depends_on: + backend: + condition: service_healthy diff --git a/frontend/index.html b/frontend/index.html index 1682d1859..5d1983c92 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -8,7 +8,7 @@ - Quickstart OpenShift + QuickStart OpenShift