Created
May 22, 2018 14:05
-
-
Save marcelo-ochoa/20ec1738970e0107af3b0b3bf1f5ee95 to your computer and use it in GitHub Desktop.
Portainer + Portainer Agent deployment
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_dtics: | |
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_dtics | |
# AGENT_PORT: 9001 | |
# LOG_LEVEL: debug | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
deploy: | |
mode: global | |
networks: | |
- agent_network_dtics | |
server: | |
image: portainer/portainer:1.17.1 | |
volumes: | |
- data_volume:/data | |
deploy: | |
mode: replicated | |
replicas: 1 | |
placement: | |
constraints: | |
- node.labels.interconnect == si | |
restart_policy: | |
condition: on-failure | |
max_attempts: 3 | |
window: 120s | |
environment: | |
TZ: America/Argentina/Buenos_Aires | |
VIRTUAL_HOST: http://portainer.exa.unicen.edu.ar,https://portainer.exa.unicen.edu.ar | |
SERVICE_PORTS: "9000" | |
networks: | |
- rproxy | |
- agent_network_dtics | |
dns: | |
- 10.1.1.243 | |
- 10.1.1.239 | |
networks: | |
rproxy: | |
external: | |
name: reverse_proxy | |
agent_network_dtics: | |
driver: overlay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment