{"id":24926460,"url":"https://github.com/oanhnn/example-traefik-proxy-auto-ssl","last_synced_at":"2026-05-04T23:35:20.329Z","repository":{"id":73395387,"uuid":"210497349","full_name":"oanhnn/example-traefik-proxy-auto-ssl","owner":"oanhnn","description":":+1: An example for setting auto proxy and auto setup SSL with Traefik 2.0","archived":false,"fork":false,"pushed_at":"2020-12-31T07:03:12.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T12:30:02.343Z","etag":null,"topics":["auto-ssl","docker","docker-compose","example","traefik","traefik-v2"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oanhnn.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-24T02:48:07.000Z","updated_at":"2023-12-29T02:26:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4de5138-9895-4bdd-92ec-9f3c3539cbe0","html_url":"https://github.com/oanhnn/example-traefik-proxy-auto-ssl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oanhnn/example-traefik-proxy-auto-ssl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fexample-traefik-proxy-auto-ssl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fexample-traefik-proxy-auto-ssl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fexample-traefik-proxy-auto-ssl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fexample-traefik-proxy-auto-ssl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oanhnn","download_url":"https://codeload.github.com/oanhnn/example-traefik-proxy-auto-ssl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fexample-traefik-proxy-auto-ssl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260246402,"owners_count":22980389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-ssl","docker","docker-compose","example","traefik","traefik-v2"],"created_at":"2025-02-02T12:52:18.991Z","updated_at":"2026-05-04T23:35:15.292Z","avatar_url":"https://github.com/oanhnn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oanhnn/example-traefik-proxy-auto-ssl\n\nAn example for setting auto proxy and auto setup SSL with Traefik 2\n\n## Refs\n\n- https://docs.traefik.io/\n\n## Requirements\n\n- Docker Engine 17.12.0+\n- Docker Compose 1.18.0+\n\n## Usage\n\n- Clone this project and set environment variables by `.env` file (see `.env.example` file).\n\n- Create docker network for reverse proxy\n  ```bash\n  $ docker network create --driver=overlay reverse-proxy\n  ```\n\n- Update docker node label if you run with Docker Swarm mode\n  ```bash\n  docker node update --label-add node-has-traefik-service=true $(docker info -f '{{.Swarm.NodeID}}') \u003e /dev/null\n  ```\n\n- Launch the `traefik-proxy` stack   \n  With `docker-compose`\n  ```bash\n  $ docker-compose -f docker-compose/traefik.yml up -d\n  ```\n  With Docker Swarm mode\n  ```bash\n  $ set -a; source .env; set +a; docker stack deploy -c docker-swarm/traefik.yml\n  ```\n  \u003e **NOTE** Docker dosen't load `.env` file. So that you load it by add `set -a; source .env; set +a;` before docker command\n\n- Create example service in `reverse-proxy` docker network like `whoami` service   \n  With `docker-compose`\n  ```bash\n  $ docker-compose -f docker-compose/whoami.yml up -d\n  ```\n  With Docker Swarm mode\n  ```bash\n  set -a; source .env; set +a; docker stack deploy -c docker-swarm/whoami.yml\n  ```\n\n- Now your service was lauch and proxy with SSL.\n  ```bash\n  $ curl -H \"Host: app.example.com\" https://127.0.0.1/\n  ```\n\n- Traefik dashboard was lauch in URL https://traefik.example.com/dashboard and secured with basic authentication and whilelist IP\n\n\u003e **NOTE** You can use `setup.sh` script in `docker-compose` and `docker-swarm` for easier\n\n## Contributing\n\nAll code contributions must go through a pull request and approved by a core developer before being merged. \nThis is to ensure proper review of all the code.\n\nFork the project, create a feature branch, and send a pull request.\n\nIf you would like to help take a look at the [list of issues](https://github.com/oanhnn/example-traefik-proxy-auto-ssl/issues).\n\n## License\n\nThis project is released under the MIT License.   \nCopyright © 2021 [Oanh Nguyen](https://github.com/oanhnn)   \nPlease see [License File](https://github.com/oanhnn/example-traefik-proxy-auto-ssl/blob/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanhnn%2Fexample-traefik-proxy-auto-ssl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foanhnn%2Fexample-traefik-proxy-auto-ssl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanhnn%2Fexample-traefik-proxy-auto-ssl/lists"}