diff --git a/compose.flutter.yml b/compose.flutter.yml index 00ccb192..eae2db8b 100644 --- a/compose.flutter.yml +++ b/compose.flutter.yml @@ -12,6 +12,8 @@ services: PORT: "5000" ports: - "5000:5000" + volumes: + - recipe_images:/usr/share/caddy/images depends_on: recipe-api: condition: service_healthy diff --git a/flutter/Caddyfile b/flutter/Caddyfile index 7657372a..03a88ca3 100644 --- a/flutter/Caddyfile +++ b/flutter/Caddyfile @@ -1,11 +1,6 @@ :{$PORT:5000} { root * /usr/share/caddy - # Recipe images are stored in a shared volume and served by the Next service. - handle /images/* { - reverse_proxy recipe-frontend:3000 - } - # Proxy API calls to backend service on the internal Docker network. handle /api/* { reverse_proxy recipe-api:8080