SHARE
TWEET

docker-compose traaefik

a guest Mar 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4.   traefik:
  5.     hostname: traefik
  6.     image: traefik:latest
  7.     container_name: traefik
  8.     restart: always
  9.     domainname: ruffat.org
  10.     networks:
  11.      - default
  12.       - traefik_proxy
  13.     ports:
  14.      - "80:80"
  15.       - "443:443"
  16. #      - "XXXX:8080"
  17.     environment:
  18.      - CF_API_EMAIL=ruffat.arnaud@gmail.com
  19.       - CF_API_KEY=3648c6de7b3b5dae2639b1edc982d83cb9a4c
  20.     labels:
  21.      - "traefik.enable=true"
  22.       - "traefik.backend=traefik"
  23.       - "traefik.frontend.rule=Host:traefik.ruffat.org"  
  24. #      - "traefik.frontend.rule=Host:ruffat.org; PathPrefixStrip: /traefik"
  25.       - "traefik.port=8080"
  26.       - "traefik.docker.network=traefik_proxy"
  27.       - "traefik.frontend.headers.SSLRedirect=true"
  28.       - "traefik.frontend.headers.STSSeconds=315360000"
  29.       - "traefik.frontend.headers.browserXSSFilter=true"
  30.       - "traefik.frontend.headers.contentTypeNosniff=true"
  31.       - "traefik.frontend.headers.forceSTSHeader=true"
  32.       - "traefik.frontend.headers.SSLHost=ruffat.org"
  33.       - "traefik.frontend.headers.STSIncludeSubdomains=true"
  34.       - "traefik.frontend.headers.STSPreload=true"
  35.       - "traefik.frontend.headers.frameDeny=true"
  36.       - "traefik.frontend.auth.basic.users=aldo:$$apr1$$mMAqtqc/$$iUZGu7DCrxYWcTXvncOu11"
  37.     volumes:
  38.      - /var/run/docker.sock:/var/run/docker.sock:ro
  39.       - /opt/traefik:/etc/traefik
  40.       - /opt/shared:/shared
  41.  
  42. networks:
  43.   traefik_proxy:
  44.     external:
  45.       name: traefik_proxy
  46.   default:
  47.     driver: bridge
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