Created
August 24, 2018 15:20
-
-
Save jvkassi/8d1ad1e70973b4b461b33151d8f3cb3d to your computer and use it in GitHub Desktop.
Stack Portainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
services: | |
agent: | |
image: portainer/agent | |
environment: | |
# REQUIRED: Should be equal to the service name prefixed by "tasks." when | |
# deployed inside an overlay network | |
AGENT_CLUSTER_ADDR: tasks.agent | |
# AGENT_PORT: 9001 | |
# LOG_LEVEL: debug | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
networks: | |
- agent_network | |
deploy: | |
mode: global | |
placement: | |
constraints: [node.platform.os == linux] | |
master: | |
image: portainer/portainer | |
command: -H tcp://tasks.agent:9001 --tlsskipverify | |
ports: | |
- "9000:9000" | |
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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment