Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d1b2bbd7e5 |
24
docker-compose.yaml
Normal file
24
docker-compose.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:latest
|
||||
container_name: portainer
|
||||
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- portainer_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
|
||||
volumes:
|
||||
portainer_data:
|
||||
@@ -1,42 +0,0 @@
|
||||
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