update docker swarm stack

This commit is contained in:
Maidul Islam
2024-05-01 19:24:05 -04:00
committed by GitHub
parent f8e1ed09d2
commit be6a98d0bb

View File

@@ -5,8 +5,8 @@ services:
image: haproxy:latest image: haproxy:latest
ports: ports:
- '7001:7000' - '7001:7000'
- '5002:5433' - '5002:5433' # Postgres master
- '5003:5434' - '5003:5434' # Postgres read
- '6379:6379' - '6379:6379'
- '8080:8080' - '8080:8080'
networks: networks:
@@ -15,22 +15,18 @@ services:
- source: haproxy-config - source: haproxy-config
target: /usr/local/etc/haproxy/haproxy.cfg target: /usr/local/etc/haproxy/haproxy.cfg
deploy: deploy:
placement: mode: global
constraints:
- node.labels.name == node1
infisical: infisical:
container_name: infisical-backend container_name: infisical-backend
image: infisical/infisical:latest-postgres image: infisical/infisical:v0.60.1-postgres
env_file: .env env_file: .env
ports:
- 80:8080
environment:
- NODE_ENV=production
networks: networks:
- infisical - infisical
secrets: secrets:
- env_file - env_file
deploy:
replicas: 5
etcd1: etcd1:
image: ghcr.io/zalando/spilo-16:3.2-p2 image: ghcr.io/zalando/spilo-16:3.2-p2