更新 docker-compose.yml
This commit is contained in:
parent
eb1be8df71
commit
aa9db9140e
|
@ -16,96 +16,97 @@ services:
|
|||
- 'node.role == manager'
|
||||
networks:
|
||||
- diyue-network
|
||||
app:
|
||||
image: swarmpit/swarmpit:latest
|
||||
ports:
|
||||
- "888:8080"
|
||||
environment:
|
||||
- SWARMPIT_DB=http://db:5984
|
||||
- SWARMPIT_INFLUXDB=http://influxdb:8086
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
networks:
|
||||
- diyue-network
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.50'
|
||||
memory: 1024M
|
||||
reservations:
|
||||
cpus: '0.05'
|
||||
memory: 200M
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
db:
|
||||
image: couchdb:2.3.1
|
||||
volumes:
|
||||
- db-data:/opt/couchdb/data
|
||||
networks:
|
||||
- diyue-network
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.30'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.10'
|
||||
memory: 256M
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.swarmpit.db-data == true
|
||||
influxdb:
|
||||
image: influxdb:1.7
|
||||
volumes:
|
||||
- influx-data:/var/lib/influxdb
|
||||
networks:
|
||||
- diyue-network
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
cpus: '0.1'
|
||||
memory: 128M
|
||||
limits:
|
||||
cpus: '0.6'
|
||||
memory: 512M
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.swarmpit.influx-data == true
|
||||
agent:
|
||||
image: swarmpit/agent:latest
|
||||
environment:
|
||||
- DOCKER_API_VERSION=1.35
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
networks:
|
||||
- diyue-network
|
||||
deploy:
|
||||
mode: global
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.10'
|
||||
memory: 64M
|
||||
reservations:
|
||||
cpus: '0.05'
|
||||
memory: 32M
|
||||
# app:
|
||||
# image: swarmpit/swarmpit:latest
|
||||
# ports:
|
||||
# - "888:8080"
|
||||
# environment:
|
||||
# - SWARMPIT_DB=http://db:5984
|
||||
# - SWARMPIT_INFLUXDB=http://influxdb:8086
|
||||
# - TZ=Asia/Shanghai
|
||||
# volumes:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
# networks:
|
||||
# - diyue-network
|
||||
# deploy:
|
||||
# resources:
|
||||
# limits:
|
||||
# cpus: '0.50'
|
||||
# memory: 1024M
|
||||
# reservations:
|
||||
# cpus: '0.05'
|
||||
# memory: 200M
|
||||
# placement:
|
||||
# constraints:
|
||||
# - node.role == manager
|
||||
# db:
|
||||
# image: couchdb:2.3.1
|
||||
# volumes:
|
||||
# - db-data:/opt/couchdb/data
|
||||
# networks:
|
||||
# - diyue-network
|
||||
# deploy:
|
||||
# resources:
|
||||
# limits:
|
||||
# cpus: '0.30'
|
||||
# memory: 512M
|
||||
# reservations:
|
||||
# cpus: '0.10'
|
||||
# memory: 256M
|
||||
# placement:
|
||||
# constraints:
|
||||
# - node.labels.swarmpit.db-data == true
|
||||
# influxdb:
|
||||
# image: influxdb:1.7
|
||||
# volumes:
|
||||
# - influx-data:/var/lib/influxdb
|
||||
# networks:
|
||||
# - diyue-network
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# cpus: '0.1'
|
||||
# memory: 128M
|
||||
# limits:
|
||||
# cpus: '0.6'
|
||||
# memory: 512M
|
||||
# placement:
|
||||
# constraints:
|
||||
# - node.labels.swarmpit.influx-data == true
|
||||
# agent:
|
||||
# image: swarmpit/agent:latest
|
||||
# environment:
|
||||
# - DOCKER_API_VERSION=1.35
|
||||
# volumes:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
# networks:
|
||||
# - diyue-network
|
||||
# deploy:
|
||||
# mode: global
|
||||
# resources:
|
||||
# limits:
|
||||
# cpus: '0.10'
|
||||
# memory: 64M
|
||||
# reservations:
|
||||
# cpus: '0.05'
|
||||
# memory: 32M
|
||||
|
||||
# networks:
|
||||
# net:
|
||||
# driver: overlay
|
||||
# attachable: true
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
driver: local
|
||||
influx-data:
|
||||
driver: local
|
||||
# volumes:
|
||||
# db-data:
|
||||
# driver: local
|
||||
# influx-data:
|
||||
# driver: local
|
||||
|
||||
|
||||
networks:
|
||||
diyue-network:
|
||||
driver: overlay
|
||||
attachable: true
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue