Update stack.staging.yml

This commit is contained in:
colin 2025-02-21 10:47:28 -05:00
parent 65431d9d8f
commit e12a5a4fd5
1 changed files with 58 additions and 40 deletions

View File

@ -1,49 +1,67 @@
networks:
traefik:
external: true
portainer_network:
driver: overlay
volumes:
portainer_agent_data:
driver: local
services: services:
portainer: postiz-postgres:
image: git.nixc.us/nixius/portainer:staging-portainer image: postgres:17-alpine
volumes: environment:
- /var/run/docker.sock:/var/run/docker.sock POSTGRES_PASSWORD: postiz-password
- /mnt/tank/persist/nixc.us/portainer/data:/data POSTGRES_USER: postiz-user
- /etc/localtime:/etc/localtime:ro POSTGRES_DB: postiz-db-local
# volumes:
# - /mnt/tank/persist/nixc.us/postiz/production/postiz-postgres:/var/lib/postgresql/data
networks:
- default
deploy: deploy:
placement: placement:
constraints: constraints:
- node.hostname == macmini14 - node.hostname == macmini14
replicas: 1
labels: postiz-keydb:
traefik.enable: "true" image: eqalpha/keydb:latest
traefik.http.routers.portainer.rule: Host(`portainer.nixc.us`) # volumes:
traefik.http.routers.portainer.entrypoints: websecure # - /mnt/tank/persist/nixc.us/postiz/production/postiz-keydb:/data
traefik.http.routers.portainer.service: portainer networks:
traefik.http.routers.portainer.tls: "true" - default
traefik.http.routers.portainer.tls.certresolver: letsencryptresolver deploy:
traefik.http.services.portainer.loadbalancer.server.port: 9443 placement:
traefik.docker.network: traefik constraints:
traefik.http.routers.portainer.middlewares: authelia_authelia@docker - 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: networks:
- traefik - traefik
- portainer_network - default
portainer_agent:
image: git.nixc.us/nixius/portainer:staging-agent
environment:
- AGENT_CLUSTER_ADDR=portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_agent_data:/data
deploy: deploy:
mode: global
labels: labels:
- "traefik.enable=false" traefik.docker.network: traefik
networks: traefik.enable: "true"
- portainer_network traefik.http.routers.postiz-staging.entrypoints: "websecure"
traefik.http.routers.postiz-staging.rule: Host(`postiz.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