Update stack.production.yml

This commit is contained in:
colin 2025-02-21 10:45:23 -05:00
parent 0a4d4e8d05
commit 65431d9d8f
1 changed files with 60 additions and 51 deletions

View File

@ -1,59 +1,68 @@
networks:
traefik:
external: true
portainer:
driver: overlay
volumes:
portainer_agent_data:
driver: local
portainer_data:
driver: local
services: services:
portainer: postiz-postgres:
image: git.nixc.us/colin/portainer:production-portainer image: postgres:17-alpine
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify environment:
POSTGRES_PASSWORD: postiz-password
POSTGRES_USER: postiz-user
POSTGRES_DB: postiz-db-local
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /mnt/tank/persist/nixc.us/postiz/production/postiz-postgres:/var/lib/postgresql/data
- portainer_data:/data networks:
- /etc/localtime:/etc/localtime:ro - default
deploy: deploy:
placement: placement:
constraints: constraints:
- node.hostname == odoo - node.hostname == macmini14
replicas: 1
labels: postiz-keydb:
traefik.enable: "true" image: eqalpha/keydb:latest
traefik.http.routers.portainer.rule: Host(`portainer.odoo.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: 9000 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: "random string that is unique to every install - just type random characters here!"
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 - default
deploy:
labels:
traefik.docker.network: traefik
traefik.enable: "true"
traefik.http.routers.postiz.entrypoints: "websecure"
traefik.http.routers.postiz.rule: Host(`postiz.nixc.us`)
traefik.http.routers.postiz.service: "postiz"
traefik.http.routers.postiz.tls: "true"
traefik.http.routers.postiz.tls.certresolver: "letsencryptresolver"
traefik.http.services.postiz.loadbalancer.server.port: "5000"
placement:
constraints:
- node.hostname == macmini14
# portainer_agent: networks:
# image: git.nixc.us/colin/portainer:production-agent default:
# environment: external: false
# - EDGE=1 traefik:
# - EDGE_ID={{.Node.Hostname}} external: true
# - EDGE_KEY=${PORTAINER_EDGE_KEY}
# - EDGE_INSECURE_POLL=1
# - AGENT_CLUSTER_ADDR=tasks.portainer_agent
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# - portainer_agent_data:/data
# deploy:
# mode: global
# placement:
# constraints:
# - node.platform.os == linux # Runs on Linux nodes only
# labels:
# - "traefik.enable=false"
# networks:
# - portainer