Skip to content

Commit

Permalink
fixed server url issue
Browse files Browse the repository at this point in the history
Thomas Hanke committed Aug 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f2fc517 commit 1f357c0
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -130,7 +130,7 @@ def get_flashed_messages(request: fastapi.Request):
swagger_ui_parameters={"syntaxHighlight": False},
middleware=middleware,
servers=[
{"url": setting.server + "/api", "description": "Production environment"},
{"url": setting.server, "description": "Production environment"},
],
# root_path="/api/v1",
root_path_in_servers=False,
6 changes: 4 additions & 2 deletions docker-compose.develop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
csvtocsvw:
image: "ghcr.io/mat-o-lab/csvtocsvw:latest"
@@ -9,8 +8,11 @@ services:
networks:
- csvtocsvw_net
environment:
APP_MODE: "development"
APP_PORT: 6001
APP_SECRET: ${APP_SECRET}
SERVER_URL: "http://docker-dev.iwm.fraunhofer.de:${APP_PORT}"
ADMIN_MAIL: ${ADMIN_MAIL}
APP_MODE: "development"
volumes:
- ./:/src
entrypoint: "python app.py"
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
version: "3"
services:
csvtocsvw:
image: "ghcr.io/mat-o-lab/csvtocsvw:latest"
container_name: "csvtocsvw"
environment:
APP_MODE: "production"
APP_PORT: 6001
APP_SECRET: ${APP_SECRET}
SERVER_URL: "http://docker-dev.iwm.fraunhofer.de:${APP_PORT}"
ADMIN_MAIL: ${ADMIN_MAIL}
APP_MODE: "production"
ports:
- ${APP_PORT}:5000
restart: always

0 comments on commit 1f357c0

Please sign in to comment.