modify(portainer-ce): modify portainer-ce stack path

This commit is contained in:
GengY
2024-02-28 17:18:52 +08:00
parent 8273674bab
commit 091bd3d82e
2 changed files with 3 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ services:
image: portainer/agent:2.19.4 image: portainer/agent:2.19.4
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes - /data/docker/volumes:/var/lib/docker/volumes
networks: networks:
- agent_network - agent_network
deploy: deploy:
@@ -18,6 +18,7 @@ services:
command: -H tcp://tasks.agent:9001 --tlsskipverify command: -H tcp://tasks.agent:9001 --tlsskipverify
ports: ports:
- "9000:9000" - "9000:9000"
- "9443:9443"
- "8000:8000" - "8000:8000"
volumes: volumes:
- portainer_data:/data - portainer_data:/data

View File

@@ -7,6 +7,7 @@ services:
restart: always restart: always
ports: ports:
- "9000:9000" - "9000:9000"
- "9443:9443"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- data:/data - data:/data