SHARE
TWEET

Untitled

a guest Aug 23rd, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2. services:
  3. ##################
  4.  portainer:
  5.   image: portainer/portainer
  6.   command: -H unix:///var/run/docker.sock
  7.   volumes:
  8.    - /run/docker.sock:/var/run/docker.sock
  9.    - portainer_data:/data
  10.   labels:
  11.    - "traefik.frontend.rule=Host:admin-swarm-test.iit.local"
  12.    - 'traefik.backend=portainer'
  13.    - 'traefik.port=9000'
  14.   ports:
  15.    - "9000"
  16.   deploy:
  17.    placement:
  18.     constraints:
  19.      - node.role == manager
  20. ##################
  21.  traefik:
  22.   image: traefik
  23.   networks:
  24.    - net
  25.   #command: -c /dev/null --web --docker --logLevel=INFO
  26.   #command: traefik --web -l DEBUG --docker --docker.watch -c /etc/traefik/traefik.toml
  27.   command: traefik --docker --docker.swarmmode --web -l DEBUG --docker.watch -c /etc/traefik/traefik.toml
  28.   ports:
  29.    - '80:80'     # Load balance via vhost name
  30.    - '8080:8080' # Dashboard
  31.   volumes:
  32.    - /run/docker.sock:/var/run/docker.sock
  33.    - traefik_config:/etc/traefik
  34.   deploy:
  35.    restart_policy:
  36.     condition: any
  37.    mode: replicated
  38.    replicas: 1
  39.    update_config:
  40.     delay: 2s
  41.    placement:
  42.     constraints:
  43.      - node.role == manager
  44. #####################
  45. volumes:
  46.  portainer_data:
  47.  traefik_config:
  48. #####################
  49. networks:
  50.  net:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top