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
This commit is contained in:
che0one
2024-11-02 23:46:33 +04:00
committed by GitHub
parent 113196c569
commit dba43a6c77

View File

@@ -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: