更新 docker-compose.yml

This commit is contained in:
Bryant 2024-01-30 17:15:41 +08:00
parent aa9db9140e
commit 407b1626a8
1 changed files with 79 additions and 81 deletions

View File

@ -16,97 +16,95 @@ services:
- 'node.role == manager' - 'node.role == manager'
networks: networks:
- diyue-network - diyue-network
# app: swarmpit-app:
# image: swarmpit/swarmpit:latest image: swarmpit/swarmpit:latest
# ports: ports:
# - "888:8080" - "888:8080"
# environment: environment:
# - SWARMPIT_DB=http://db:5984 - SWARMPIT_DB=http://swarmpit-db:5984
# - SWARMPIT_INFLUXDB=http://influxdb:8086 - SWARMPIT_INFLUXDB=http://swarmpit-influxdb:8086
# - TZ=Asia/Shanghai - TZ=Asia/Shanghai
# volumes: volumes:
# - /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
# networks: networks:
# - diyue-network - diyue-network
# deploy: deploy:
# resources: resources:
# limits: limits:
# cpus: '0.50' cpus: '0.50'
# memory: 1024M memory: 1024M
# reservations: reservations:
# cpus: '0.05' cpus: '0.05'
# memory: 200M memory: 200M
# placement: placement:
# constraints: constraints:
# - node.role == manager - node.role == manager
# db: swarmpit-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:
# - diyue-network - diyue-network
# deploy: deploy:
# resources: resources:
# limits: limits:
# cpus: '0.30' cpus: '0.30'
# memory: 512M memory: 512M
# reservations: reservations:
# cpus: '0.10' cpus: '0.10'
# memory: 256M memory: 256M
# placement: placement:
# constraints: constraints:
# - node.labels.swarmpit.db-data == true - node.labels.swarmpit.db-data == true
# influxdb: swarmpit-influxdb:
# image: influxdb:1.7 image: influxdb:1.7
# volumes: volumes:
# - influx-data:/var/lib/influxdb - influx-data:/var/lib/influxdb
# networks: networks:
# - diyue-network - diyue-network
# deploy: deploy:
# resources: resources:
# reservations: reservations:
# cpus: '0.1' cpus: '0.1'
# memory: 128M memory: 128M
# limits: limits:
# cpus: '0.6' cpus: '0.6'
# memory: 512M memory: 512M
# placement: placement:
# constraints: constraints:
# - node.labels.swarmpit.influx-data == true - node.labels.swarmpit.influx-data == true
# agent: swarmpit-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:
# - diyue-network - diyue-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.03'
# memory: 32M memory: 32M
# networks: # networks:
# net: # net:
# driver: overlay # driver: overlay
# attachable: true # attachable: true
# volumes: volumes:
# db-data: db-data:
# driver: local driver: local
# influx-data: influx-data:
# driver: local driver: local
networks: networks:
diyue-network: diyue-network:
driver: overlay driver: overlay
attachable: true