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
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
- /data/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
@@ -18,6 +18,7 @@ services:
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9000:9000"
- "9443:9443"
- "8000:8000"
volumes:
- portainer_data:/data

View File

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