Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

refactor: Add Postiz service to compose file (disabled for now)

Andras Bacsai1fb0ee0db593
diff --git a/templates/compose/postiz.yaml b/templates/compose/postiz.yaml
new file mode 100644
index 0000000000..aba90103b8
--- /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