From 0ceb174688c1bb7d408dff94c1ad80cdb4a77957 Mon Sep 17 00:00:00 2001 From: Zeecka Date: Sat, 10 Jan 2026 23:02:27 +0100 Subject: [PATCH] Add WEB_APP_PORT configuration to .env and update Docker compose files --- .env.example | 3 +++ .github/workflows/release.yml | 2 ++ compose.dev.yml | 2 +- compose.yml | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 3ce4220..df712a3 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,6 @@ +# Web application configuration +WEB_APP_PORT=5000 + # Application configuration MAX_CONTENT_LENGTH=3145728 MAX_PENDING_TIME=600 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 682d53e..6812636 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -129,6 +129,8 @@ jobs: # create .env cat < .env + WEB_APP_PORT=${{ vars.WEB_APP_PORT }} + MAX_CONTENT_LENGTH=${{ vars.MAX_CONTENT_LENGTH }} MAX_PENDING_TIME=${{ vars.MAX_PENDING_TIME }} MAX_STORE_TIME=${{ vars.MAX_STORE_TIME }} diff --git a/compose.dev.yml b/compose.dev.yml index f095370..abe3a9c 100644 --- a/compose.dev.yml +++ b/compose.dev.yml @@ -6,7 +6,7 @@ services: restart: always command: ["flask", "--app", "aperisolve.app", "run", "--host=0.0.0.0", "--port=5000"] ports: - - "5000:5000" + - "${WEB_APP_PORT:-5000}:5000" volumes: - ./aperisolve:/app/aperisolve depends_on: diff --git a/compose.yml b/compose.yml index ea56852..27d24d6 100644 --- a/compose.yml +++ b/compose.yml @@ -5,7 +5,7 @@ services: container_name: aperisolve-web restart: always ports: - - "5000:5000" + - "${WEB_APP_PORT:-5000}:5000" volumes: - apresults:/app/aperisolve/results depends_on: