更新 docker-compose.yml

This commit is contained in:
Bryant 2024-02-05 17:09:26 +08:00
parent 4765abc0f1
commit 1892b63124
1 changed files with 4 additions and 6 deletions

View File

@ -3,7 +3,6 @@ version: "3.8"
services: services:
visualizer: visualizer:
image: dockersamples/visualizer:latest image: dockersamples/visualizer:latest
privileged: true
ports: ports:
- "8001:8080" - "8001:8080"
stop_grace_period: 1m30s stop_grace_period: 1m30s
@ -19,7 +18,6 @@ services:
- diyue-network - diyue-network
swarmpit-app: swarmpit-app:
image: swarmpit/swarmpit:latest image: swarmpit/swarmpit:latest
privileged: true
ports: ports:
- "888:8080" - "888:8080"
environment: environment:
@ -41,13 +39,14 @@ services:
cpus: '0.50' cpus: '0.50'
memory: 1024M memory: 1024M
reservations: reservations:
cpus: '0.10' cpus: '0.05'
memory: 300M memory: 200M
placement: placement:
constraints: constraints:
- node.role == manager - node.role == manager
swarmpit-db: swarmpit-db:
image: couchdb:2.3.1 image: couchdb:2.3.1
hostname: swarmpit-db
volumes: volumes:
- db-data:/opt/couchdb/data - db-data:/opt/couchdb/data
networks: networks:
@ -65,7 +64,7 @@ services:
- node.labels.swarmpit.db-data == true - node.labels.swarmpit.db-data == true
swarmpit-influxdb: swarmpit-influxdb:
image: influxdb:1.8 image: influxdb:1.8
# image: influxdb:latest hostname: swarmpit-influxdb
volumes: volumes:
- influx-data:/var/lib/influxdb - influx-data:/var/lib/influxdb
networks: networks:
@ -83,7 +82,6 @@ services:
- node.labels.swarmpit.influx-data == true - node.labels.swarmpit.influx-data == true
swarmpit-agent: swarmpit-agent:
image: swarmpit/agent:latest image: swarmpit/agent:latest
privileged: true
environment: environment:
- DOCKER_API_VERSION=1.43 - DOCKER_API_VERSION=1.43
volumes: volumes: