From 1fb0ee0db593e29776739a63a07b59e524786e5c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 23 Sep 2024 10:46:30 +0200 Subject: [PATCH] refactor: Add Postiz service to compose file (disabled for now) --- templates/compose/postiz.yaml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 templates/compose/postiz.yaml diff --git a/templates/compose/postiz.yaml b/templates/compose/postiz.yaml new file mode 100644 index 000000000..aba90103b --- /dev/null +++ b/templates/compose/postiz.yaml @@ -0,0 +1,50 @@ +# ignore: true +# documentation: https://docs.postiz.com/introduction +# slogan: +# tags: +# logo: +# port: 5000 + +services: + postiz: + image: "ghcr.io/gitroomhq/postiz-app:latest" + environment: + - SERVICE_FQDN_POSTIZ_5000 + - MAIN_URL=${SERVICE_FQDN_POSTIZ} + - FRONTEND_URL=${SERVICE_FQDN_POSTIZ} + - NEXT_PUBLIC_BACKEND_URL=${SERVICE_FQDN_POSTIZ_3000} + - 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 + - BACKEND_INTERNAL_URL=${SERVICE_FQDN_POSTIZ} + - IS_GENERAL=true + depends_on: + postgres: + condition: service_healthy + redis: + condition: service_started + volumes: + - "postiz_config:/config" + postgres: + image: "postgres:latest" + environment: + - POSTGRES_DB=${POSTGRES_DB:-postiz} + - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES} + - POSTGRES_USER=${SERVICE_USER_POSTGRES} + - POSTGRES_PORT=${POSTGRES_PORT:-5432} + volumes: + - "pg-data:/var/lib/postgresql/data" + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] + interval: 5s + timeout: 20s + retries: 10 + redis: + image: "redis:7.2" + volumes: + - "redis_data:/data" + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 5s + timeout: 20s + retries: 10