diff --git a/diogenes/src/main/resources/application.yml b/diogenes/src/main/resources/application.yml index c11a217..661a9eb 100644 --- a/diogenes/src/main/resources/application.yml +++ b/diogenes/src/main/resources/application.yml @@ -41,8 +41,9 @@ file: # Location in file system: uploads-dir: ./uploads images-dir: files/items/images + images-host: http://localhost:8080 # API Endpoint path - images-base-path: ${server.servlet.context-path}/api/v1/files/images/ + images-base-path: ${file.images-host}${server.servlet.context-path}/api/v1/files/images/ diogenes: # Enable authentication diff --git a/docker-compose.yaml b/docker-compose.yaml index 7e088dd..052490f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,5 +1,3 @@ -version: "3.8" - services: diogenes-ng: container_name: diogenes-ng @@ -24,7 +22,7 @@ services: - SPRING_DATASOURCE_JDBC-URL=jdbc:postgresql://diogenes-db:5432/diogenes_db - SPRING_DATASOURCE_USERNAME=${DATABASE_USER} - SPRING_DATASOURCE_PASSWORD=${DATABASE_PASSWORD} - - SPRING_APPLICATION_JSON={"jwt.secret":"${TOKEN_SECRET}"} + - SPRING_APPLICATION_JSON={"jwt.secret":"${TOKEN_SECRET}", "file.images-host":""} ports: - 8080:8080 volumes: