mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add extensive collection of application blueprints with Docker Compose configurations
This commit is contained in:
65
blueprints/postiz/docker-compose.yml
Normal file
65
blueprints/postiz/docker-compose.yml
Normal file
@@ -0,0 +1,65 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
postiz-app:
|
||||
image: ghcr.io/gitroomhq/postiz-app:latest
|
||||
restart: always
|
||||
|
||||
environment:
|
||||
MAIN_URL: "https://${POSTIZ_HOST}"
|
||||
FRONTEND_URL: "https://${POSTIZ_HOST}"
|
||||
NEXT_PUBLIC_BACKEND_URL: "https://${POSTIZ_HOST}/api"
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
DATABASE_URL: "postgresql://${DB_USER}:${DB_PASSWORD}@postiz-postgres:5432/${DB_NAME}"
|
||||
REDIS_URL: "redis://postiz-redis:6379"
|
||||
BACKEND_INTERNAL_URL: "http://localhost:3000"
|
||||
IS_GENERAL: "true"
|
||||
STORAGE_PROVIDER: "local"
|
||||
UPLOAD_DIRECTORY: "/uploads"
|
||||
NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads"
|
||||
volumes:
|
||||
- postiz-config:/config/
|
||||
- postiz-uploads:/uploads/
|
||||
depends_on:
|
||||
postiz-postgres:
|
||||
condition: service_healthy
|
||||
postiz-redis:
|
||||
condition: service_healthy
|
||||
|
||||
postiz-postgres:
|
||||
image: postgres:17-alpine
|
||||
restart: always
|
||||
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
volumes:
|
||||
- postiz-postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: pg_isready -U ${DB_USER} -d ${DB_NAME}
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
postiz-redis:
|
||||
image: redis:7.2
|
||||
restart: always
|
||||
|
||||
healthcheck:
|
||||
test: redis-cli ping
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
volumes:
|
||||
- postiz-redis-data:/data
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
postiz-postgres-data:
|
||||
postiz-redis-data:
|
||||
postiz-config:
|
||||
postiz-uploads:
|
||||
BIN
blueprints/postiz/postiz.png
Normal file
BIN
blueprints/postiz/postiz.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
21
blueprints/postiz/template.yml
Normal file
21
blueprints/postiz/template.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
variables:
|
||||
main_domain: ${randomDomain}
|
||||
db_password: ${password}
|
||||
db_user: "postiz"
|
||||
db_name: "postiz"
|
||||
jwt_secret: ${base64:32}
|
||||
|
||||
config:
|
||||
domains:
|
||||
- serviceName: postiz-app
|
||||
port: 5000
|
||||
host: ${main_domain}
|
||||
|
||||
env:
|
||||
POSTIZ_HOST: ${main_domain}
|
||||
DB_PASSWORD: ${db_password}
|
||||
DB_USER: ${db_user}
|
||||
DB_NAME: ${db_name}
|
||||
JWT_SECRET: ${jwt_secret}
|
||||
|
||||
mounts: []
|
||||
Reference in New Issue
Block a user