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