feat(postiz): add Postiz social media manager
This commit is contained in:
parent
8d3d21476e
commit
ce3d7b2438
4 changed files with 90 additions and 0 deletions
24
quadlets/postiz/postiz-postgres.container
Normal file
24
quadlets/postiz/postiz-postgres.container
Normal file
|
@ -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
|
19
quadlets/postiz/postiz-redis.container
Normal file
19
quadlets/postiz/postiz-redis.container
Normal file
|
@ -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
|
41
quadlets/postiz/postiz.container
Normal file
41
quadlets/postiz/postiz.container
Normal file
|
@ -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
|
6
quadlets/postiz/postiz.volume
Normal file
6
quadlets/postiz/postiz.volume
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Volume]
|
||||
VolumeName=postiz-config
|
||||
VolumeName=postiz-uploads
|
||||
VolumeName=postiz-redis-data
|
||||
VolumeName=postiz-db
|
||||
|
Loading…
Add table
Reference in a new issue