Skip to content

Instantly share code, notes, and snippets.

@marcelo-ochoa
Created May 22, 2018 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelo-ochoa/f0024383ecdcfada5f962f2232cdc320 to your computer and use it in GitHub Desktop.
Save marcelo-ochoa/f0024383ecdcfada5f962f2232cdc320 to your computer and use it in GitHub Desktop.
stack definition for portainer agent at DC cluster
version: '3'
services:
dc:
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.portainer_agent_dc
VIRTUAL_HOST: "https://agentsdc.exa.unicen.edu.ar"
SERVICE_PORTS: "9001"
HEALTH_CHECK: "check ssl verify none"
# AGENT_PORT: 9001
# LOG_LEVEL: debug
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- agent_network_dc
- rproxy
deploy:
mode: global
networks:
rproxy:
external:
name: reverse_proxy
agent_network_dc:
driver: overlay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment