fix: remove unused image handling in Caddyfile and ensure recipe images are served correctly
This commit is contained in:
@@ -12,6 +12,8 @@ services:
|
|||||||
PORT: "5000"
|
PORT: "5000"
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
|
volumes:
|
||||||
|
- recipe_images:/usr/share/caddy/images
|
||||||
depends_on:
|
depends_on:
|
||||||
recipe-api:
|
recipe-api:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
:{$PORT:5000} {
|
:{$PORT:5000} {
|
||||||
root * /usr/share/caddy
|
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.
|
# Proxy API calls to backend service on the internal Docker network.
|
||||||
handle /api/* {
|
handle /api/* {
|
||||||
reverse_proxy recipe-api:8080
|
reverse_proxy recipe-api:8080
|
||||||
|
|||||||
Reference in New Issue
Block a user