From dba43a6c773a446d36b7de5a1e2ee4928c88e136 Mon Sep 17 00:00:00 2001 From: che0one <167894882+che0one@users.noreply.github.com> Date: Sat, 2 Nov 2024 23:46:33 +0400 Subject: [PATCH] Update postiz.yaml By default only frontend of Postiz app works on port 4200 but on 5000 a whole service, if use 4200 signup will be impossible due strict CORS between resources /frontend and /api also add healthchecks to main app --- templates/compose/postiz.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/templates/compose/postiz.yaml b/templates/compose/postiz.yaml index 8d199fde9..05a51e42d 100644 --- a/templates/compose/postiz.yaml +++ b/templates/compose/postiz.yaml @@ -3,16 +3,16 @@ # slogan: # tags: # logo: -# port: 4200 +# port: 5000 services: postiz: image: "ghcr.io/gitroomhq/postiz-app:latest" environment: - - SERVICE_FQDN_POSTIZ_4200 + - SERVICE_FQDN_POSTIZ_5000 - MAIN_URL=${SERVICE_FQDN_POSTIZ} - FRONTEND_URL=${SERVICE_FQDN_POSTIZ} - - NEXT_PUBLIC_BACKEND_URL=${SERVICE_FQDN_POSTIZAPI_3000} + - NEXT_PUBLIC_BACKEND_URL=${SERVICE_FQDN_POSTIZ}/api - JWT_SECRET=${SERVICE_REALBASE64_JWTSECRET} - DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-postiz}?schema=public - REDIS_URL=redis://redis:6379 @@ -33,7 +33,13 @@ services: redis: condition: service_started volumes: - - "postiz_config:/config" + - 'postiz_config:/config' + - 'postiz_uploads:/uploads' + healthcheck: + test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:5000/"] + interval: 5s + timeout: 20s + retries: 10 postgres: image: "postgres:latest" environment: