diff --git a/quadlets/postiz/postiz-postgres.container b/quadlets/postiz/postiz-postgres.container new file mode 100644 index 0000000..955dc26 --- /dev/null +++ b/quadlets/postiz/postiz-postgres.container @@ -0,0 +1,24 @@ +[Unit] +Description=Postiz DB + +[Service] +Restart=on-failure +TimeoutStartSec=900 + +[Install] +WantedBy=default.target + +[Container] +Image=docker.io/postgres:17-alpine +ContainerName=postiz-postgres +AutoUpdate=registry + +Network= +HostName=postiz-postgres + +Volume=postiz-db:/var/lib/postgresql/data + +Environment=POSTGRES_USER=postiz-user +Environment=POSTGRES_DB=postiz-db-local + +Secret=postiz-password,type=env,target=POSTIZ_PASSWORD diff --git a/quadlets/postiz/postiz-redis.container b/quadlets/postiz/postiz-redis.container new file mode 100644 index 0000000..507c5bf --- /dev/null +++ b/quadlets/postiz/postiz-redis.container @@ -0,0 +1,19 @@ +[Unit] +Description=Postiz Redis + +[Service] +Restart=on-failure +TimeoutStartSec=900 + +[Install] +WantedBy=default.target + +[Container] +Image=docker.io/redis:7.2 +ContainerName=postiz-redis +AutoUpdate=registry + +Network= +HostName=postiz-redis + +Volume=postiz-redis-data:/data diff --git a/quadlets/postiz/postiz.container b/quadlets/postiz/postiz.container new file mode 100644 index 0000000..9a33b43 --- /dev/null +++ b/quadlets/postiz/postiz.container @@ -0,0 +1,41 @@ +[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 diff --git a/quadlets/postiz/postiz.volume b/quadlets/postiz/postiz.volume new file mode 100644 index 0000000..abf0dba --- /dev/null +++ b/quadlets/postiz/postiz.volume @@ -0,0 +1,6 @@ +[Volume] +VolumeName=postiz-config +VolumeName=postiz-uploads +VolumeName=postiz-redis-data +VolumeName=postiz-db +