Skip to content

Commit

Permalink
added portainer
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinYasser authored and Ahmad45123 committed May 9, 2024
1 parent 6351af2 commit 38a44e1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions portainer-agent-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: '3.2'

services:
agent:
image: portainer/agent:2.19.5
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]

portainer:
image: portainer/portainer-ce:2.19.5
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9443:9443"
- "9000:9000"
- "8000:8000"
volumes:
- portainer_data:/data
networks:
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]

networks:
agent_network:
driver: overlay
attachable: true

volumes:
portainer_data:

0 comments on commit 38a44e1

Please sign in to comment.