Forked from marcelo-ochoa/docker-compose-portainer.yml
Created
December 1, 2021 22:59
-
-
Save RyanWor/99a81c4ad94f22e2a0d2a31d47517ad5 to your computer and use it in GitHub Desktop.
A docker compose stack for Portainer.IO and agents using GlusterFS volume driver plugin
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.6' | |
services: | |
agent: | |
image: portainer/agent | |
environment: | |
AGENT_CLUSTER_ADDR: tasks.portainer_agent | |
# AGENT_PORT: 9001 | |
# LOG_LEVEL: debug | |
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 | |
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify | |
ports: | |
- "9000:9000" | |
- "8000:8000" | |
volumes: | |
- portainer_data:/data | |
networks: | |
- agent_network | |
- lb_network | |
deploy: | |
mode: replicated | |
replicas: 1 | |
placement: | |
constraints: [node.role == manager] | |
networks: | |
agent_network: | |
driver: overlay | |
attachable: true | |
lb_network: | |
external: true | |
volumes: | |
portainer_data: | |
driver: glusterfs | |
name: "myvolume/portainer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment