podbox/quadlets/postiz/postiz.container
2025-04-01 19:25:15 -05:00

41 lines
1.1 KiB
Text

[Unit]
Description=Postiz social media management
Requires=postiz-postgres.service
Requires=postiz-redis.service
After=postiz-postgres.service
After=postiz-redis.service
[Service]
Restart=on-failure
TimeoutStartSec=900
[Install]
WantedBy=default.target
[Container]
Image=ghcr.io/gitroomhq/postiz-app:latest
ContainerName=postiz
AutoUpdate=registry
Network=
HostName=postiz
PublishPort=5000:5000
Volume=postiz-config:/config
Volume=postiz-uploads:/uploads
Environment=MAIN_URL=https://postiz.example.com
Environment=FRONTEND_URL=https://postiz.example.com
Environment=NEXT_PUBLIC_BACKEND_URL=https://postiz.example.com/api
Environment=DATABASE_URL=postgresql://postiz-user:${POSTIZ_PASSWORD}@postiz-postgres:5432/postiz-db-local
Environment=redis://postiz-redis:6379
Environment=BACKEND_INTERNAL_URL=http://localhost:3000
Environment=IS_GENERAL=true
Environment=STORAGE_PROVIDER=local
Environment=UPLOAD_DIRECTORY=/uploads
Environment=NEXT_PUBLIC_UPLOAD_DIRECTORY=/uploads
Secret=postiz-password,type=env,target=POSTIZ_PASSWORD
Secret=postiz-jwt,type=env,target=JWT_SECRET