Compare commits
2 Commits
master
...
58efe131cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58efe131cd | ||
|
|
3c3d8be5e4 |
@@ -1,22 +0,0 @@
|
|||||||
services:
|
|
||||||
portainer:
|
|
||||||
image: portainer/portainer-ce:latest
|
|
||||||
container_name: portainer
|
|
||||||
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ./data:/data
|
|
||||||
networks:
|
|
||||||
- proxy_net
|
|
||||||
agent:
|
|
||||||
image: portainer/agent:latest
|
|
||||||
container_name: portainer_agent
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- "${WG_IP}:9001:9001"
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
||||||
networks:
|
|
||||||
proxy_net:
|
|
||||||
external: true
|
|
||||||
42
portainer-stack.yaml
Normal file
42
portainer-stack.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
agent:
|
||||||
|
image: portainer/agent:latest
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||||
|
networks:
|
||||||
|
- agent_network
|
||||||
|
ports:
|
||||||
|
- target: 9001
|
||||||
|
published: 9001
|
||||||
|
protocol: tcp
|
||||||
|
mode: host
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer-ce:latest
|
||||||
|
command: --admin-password "$PORTAINER_ADMIN_PASSWORD_HASH"
|
||||||
|
volumes:
|
||||||
|
- portainer_data:/data
|
||||||
|
networks:
|
||||||
|
- agent_network
|
||||||
|
- proxy_net
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.role == hp
|
||||||
|
|
||||||
|
networks:
|
||||||
|
agent_network:
|
||||||
|
driver: overlay
|
||||||
|
attachable: true
|
||||||
|
|
||||||
|
proxy_net:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
portainer_data:
|
||||||
Reference in New Issue
Block a user