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