From 4d26bee2ba62ebec502b81c8bbb89f93228345f7 Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Tue, 30 Sep 2025 18:06:09 +0200 Subject: [PATCH] Staging dockerfile --- docker-compose.staging.yml | 24 ++++++++++++++++++++++++ docker-compose.yml | 12 ++++++++---- 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 docker-compose.staging.yml diff --git a/docker-compose.staging.yml b/docker-compose.staging.yml new file mode 100644 index 0000000..5001554 --- /dev/null +++ b/docker-compose.staging.yml @@ -0,0 +1,24 @@ +name: hamann-ausgabe-staging +services: + hamann-staging: + build: . + volumes: + - hamann_staging_data:/app/data + networks: + - caddy + environment: + - ASPNETCORE_URLS=http://+:5000 + - DOTNET_ENVIRONMENT=Staging + - FileStoragePath=/app/data + - RepositoryBranch=main + - RepositoryURL=https://github.com/Theodor-Springmann-Stiftung/hamann-xml + - WebhookSecret=${WEBHOOK_SECRET:-} + restart: unless-stopped + +volumes: + hamann_staging_data: + external: true + +networks: + caddy: + external: true \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0616d30..178bb72 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,11 @@ name: hamann-ausgabe services: - web: + hamann-service: build: . volumes: - hamann_data:/app/data - ports: - - "5000:5000" + networks: + - caddy environment: - ASPNETCORE_URLS=http://+:5000 - DOTNET_ENVIRONMENT=Production @@ -17,4 +17,8 @@ services: volumes: hamann_data: - external: true \ No newline at end of file + external: true + +networks: + caddy: + external: true