postiz/stack.staging.yml

68 lines
2.1 KiB
YAML

services:
postiz-postgres:
image: postgres:17-alpine
environment:
POSTGRES_PASSWORD: postiz-password
POSTGRES_USER: postiz-user
POSTGRES_DB: postiz-db-local
# volumes:
# - /mnt/tank/persist/nixc.us/postiz/production/postiz-postgres:/var/lib/postgresql/data
networks:
- default
deploy:
placement:
constraints:
- node.hostname == macmini14
postiz-keydb:
image: eqalpha/keydb:latest
# volumes:
# - /mnt/tank/persist/nixc.us/postiz/production/postiz-keydb:/data
networks:
- default
deploy:
placement:
constraints:
- node.hostname == macmini14
postiz:
image: ghcr.io/gitroomhq/postiz-app:latest
environment:
MAIN_URL: "https://postiz.nixc.us"
FRONTEND_URL: "https://postiz.nixc.us"
NEXT_PUBLIC_BACKEND_URL: "https://postiz.nixc.us/api"
JWT_SECRET: "zKdyVqnsLx8PrGKnFUz9AnSjrcu003kuzxBpHiNI6MU="
DATABASE_URL: "postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local"
REDIS_URL: "redis://postiz-keydb:6379"
BACKEND_INTERNAL_URL: "http://localhost:3000"
IS_GENERAL: "true"
STORAGE_PROVIDER: "local"
UPLOAD_DIRECTORY: "/uploads"
NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads"
# volumes:
# - /mnt/tank/persist/nixc.us/postiz/production/config:/config
# - /mnt/tank/persist/nixc.us/postiz/production/uploads:/uploads
networks:
- traefik
- default
deploy:
labels:
traefik.docker.network: traefik
traefik.enable: "true"
traefik.http.routers.postiz-staging.entrypoints: "websecure"
traefik.http.routers.postiz-staging.rule: Host(`postiz.staging.nixc.us`)
traefik.http.routers.postiz-staging.service: "postiz-staging"
traefik.http.routers.postiz-staging.tls: "true"
traefik.http.routers.postiz-staging.tls.certresolver: "letsencryptresolver"
traefik.http.services.postiz-staging.loadbalancer.server.port: "5000"
placement:
constraints:
- node.hostname == macmini14
networks:
default:
traefik:
external: true