From 59e37e14568dfb5fcbe52413a90b79f0661bad51 Mon Sep 17 00:00:00 2001 From: Simon <119116740+Seym0n@users.noreply.github.com> Date: Tue, 15 Apr 2025 23:02:42 +0200 Subject: [PATCH 1/2] fix: unsend template In the previous template, the mapping of the web app was misconfigured due to the hostname not being set and the missing ports. Furthermore, the health check url was modified. --- templates/compose/unsend.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/compose/unsend.yaml b/templates/compose/unsend.yaml index 649b7f704..bb5668038 100644 --- a/templates/compose/unsend.yaml +++ b/templates/compose/unsend.yaml @@ -35,6 +35,8 @@ services: unsend: image: unsend/unsend:latest + ports: + - "3000:3000" environment: - SERVICE_FQDN_UNSEND_3000 - DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${SERVICE_DB_POSTGRES:-unsend} @@ -48,13 +50,14 @@ services: - REDIS_URL=redis://redis:6379 - NEXT_PUBLIC_IS_CLOUD=${NEXT_PUBLIC_IS_CLOUD:-false} - API_RATE_LIMIT=${API_RATE_LIMIT:-1} + - HOSTNAME=0.0.0.0 depends_on: postgres: condition: service_healthy redis: condition: service_healthy healthcheck: - test: [ "CMD-SHELL", "wget -qO- http://127.0.0.1:3000 || exit 1" ] + test: [ "CMD-SHELL", "wget -qO- http://unsend:3000 || exit 1" ] interval: 5s retries: 10 timeout: 2s From b88eae9669d3db72092841ee099ccf91b1d18ab2 Mon Sep 17 00:00:00 2001 From: Simon <119116740+Seym0n@users.noreply.github.com> Date: Wed, 16 Apr 2025 15:51:06 +0200 Subject: [PATCH 2/2] fix: replace ports with expose This replaces the ports block with expose block --- templates/compose/unsend.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/compose/unsend.yaml b/templates/compose/unsend.yaml index bb5668038..32323f4bb 100644 --- a/templates/compose/unsend.yaml +++ b/templates/compose/unsend.yaml @@ -35,8 +35,8 @@ services: unsend: image: unsend/unsend:latest - ports: - - "3000:3000" + expose: + - 3000 environment: - SERVICE_FQDN_UNSEND_3000 - DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${SERVICE_DB_POSTGRES:-unsend}