Forked from austinfrey/registry-traefik-compose.yml
Created
November 26, 2018 12:30
-
-
Save clevertonh/2cdc69a7777063ce38c28ba45b60078c to your computer and use it in GitHub Desktop.
This file contains hidden or 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" | |
| services: | |
| # Traefik setup | |
| traefik: | |
| image: traefik:latest | |
| command: -c --docker=true | |
| --docker.swarmmode=true | |
| --docker.domain=traefik | |
| --docker.watch=true | |
| --web=true | |
| --debug=true | |
| --defaultEntryPoints='http,https' | |
| --acme=true | |
| --acme.domains='yourdomain.co,www.yourdomain.co' | |
| --acme.email=youremail@gmail.com | |
| --acme.ondemand=true | |
| --acme.onhostrule=true | |
| --acme.storage=/etc/traefik/acme/acme.json | |
| --acme.entryPoint=https | |
| --entryPoints='Name:https Address::443 TLS' | |
| --entryPoints='Name:http Address::80' | |
| ports: | |
| - 80:80 | |
| - 443:443 | |
| - 8080:8080 | |
| volumes: | |
| - "/var/run/docker.sock:/var/run/docker.sock" | |
| - "acme:/etc/traefik/acme" | |
| networks: | |
| - traefik-net | |
| deploy: | |
| placement: | |
| constraints: [node.role == manager] | |
| minio: | |
| image: minio/minio:RELEASE.2017-03-16T21-50-32Z | |
| volumes: | |
| - minio-data:/export | |
| networks: | |
| - traefik-net | |
| environment: | |
| MINIO_ACCESS_KEY: YOURMINIOACCESSKEY | |
| MINIO_SECRET_KEY: YOURMINIOSECRETKEY | |
| deploy: | |
| labels: | |
| - traefik.port=9000 | |
| - traefik.frontend.rule=Host:yourdomain.co | |
| restart_policy: | |
| delay: 10s | |
| max_attempts: 10 | |
| window: 60s | |
| command: server /export | |
| registry: | |
| image: registry:2 | |
| volumes: | |
| - /home/user/config.yml:/etc/docker/registry/config.yml | |
| networks: | |
| - traefik-net | |
| deploy: | |
| labels: | |
| - traefik.port=5000 | |
| - traefik.frontend.rule=Host:www.yourdomain.co | |
| networks: | |
| traefik-net: | |
| driver: overlay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment