[swarmpit]

This commit is contained in:
2024-07-28 15:43:21 +02:00
parent 35b3f6a829
commit a899e5581c

162
swarm.yml
View File

@@ -249,87 +249,87 @@
- "traefik.http.routers.whoami-https.middlewares=privatevpn" - "traefik.http.routers.whoami-https.middlewares=privatevpn"
networks: networks:
- public - public
swarmpit: # swarmpit:
image: swarmpit/swarmpit:latest # image: swarmpit/swarmpit:latest
environment: # environment:
- SWARMPIT_DB=http://db:5984 # - SWARMPIT_DB=http://db:5984
- SWARMPIT_INFLUXDB=http://influxdb:8086 # - SWARMPIT_INFLUXDB=http://influxdb:8086
volumes: # volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # - /var/run/docker.sock:/var/run/docker.sock:ro
networks: # networks:
- public # - public
- agent_network # - agent_network
deploy: # deploy:
resources: # resources:
limits: # limits:
cpus: '0.50' # cpus: '0.50'
memory: 1024M # memory: 1024M
reservations: # reservations:
cpus: '0.25' # cpus: '0.25'
memory: 512M # memory: 512M
placement: # placement:
constraints: # constraints:
- node.role == manager # - node.role == manager
labels: # labels:
- "traefik.enable=true" # - "traefik.enable=true"
- "traefik.docker.network=public" # - "traefik.docker.network=public"
- "traefik.http.routers.swarmpit-https.rule=Host(`swarmpit.jingoh.private`)" # - "traefik.http.routers.swarmpit-https.rule=Host(`swarmpit.jingoh.private`)"
- "traefik.http.routers.swarmpit-https.entrypoints=websecure" # - "traefik.http.routers.swarmpit-https.entrypoints=websecure"
- "traefik.http.routers.swarmpit-https.service=swarmpit" # - "traefik.http.routers.swarmpit-https.service=swarmpit"
- "traefik.http.services.swarmpit.loadbalancer.server.port=8080" # - "traefik.http.services.swarmpit.loadbalancer.server.port=8080"
- "traefik.http.routers.swarmpit-https.tls=true" # - "traefik.http.routers.swarmpit-https.tls=true"
- "traefik.http.routers.swarmpit-https.middlewares=privatevpn" # - "traefik.http.routers.swarmpit-https.middlewares=privatevpn"
db: # db:
image: couchdb:2.3.1 # image: couchdb:2.3.1
volumes: # volumes:
- db-data:/opt/couchdb/data # - db-data:/opt/couchdb/data
networks: # networks:
- agent_network # - agent_network
deploy: # deploy:
resources: # resources:
limits: # limits:
cpus: '0.30' # cpus: '0.30'
memory: 512M # memory: 512M
reservations: # reservations:
cpus: '0.15' # cpus: '0.15'
memory: 256M # memory: 256M
placement: # placement:
constraints: # constraints:
- node.role == manager # - node.role == manager
influxdb: # influxdb:
image: influxdb:1.7 # image: influxdb:1.7
volumes: # volumes:
- influx-data:/var/lib/influxdb # - influx-data:/var/lib/influxdb
networks: # networks:
- agent_network # - agent_network
deploy: # deploy:
resources: # resources:
reservations: # reservations:
cpus: '0.3' # cpus: '0.3'
memory: 128M # memory: 128M
limits: # limits:
cpus: '0.6' # cpus: '0.6'
memory: 512M # memory: 512M
placement: # placement:
constraints: # constraints:
- node.role == manager # - node.role == manager
agent: # agent:
image: swarmpit/agent:latest # image: swarmpit/agent:latest
environment: # environment:
- DOCKER_API_VERSION=1.35 # - DOCKER_API_VERSION=1.35
volumes: # volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # - /var/run/docker.sock:/var/run/docker.sock:ro
networks: # networks:
- agent_network # - agent_network
deploy: # deploy:
mode: global # mode: global
resources: # resources:
limits: # limits:
cpus: '0.10' # cpus: '0.10'
memory: 64M # memory: 64M
reservations: # reservations:
cpus: '0.05' # cpus: '0.05'
memory: 32M # memory: 32M
networks: networks:
public: public:
external: true external: true