Template for quick configuration of Docker containers for reverse proxy with Traefik v2.x, automatic configuration of virtualhosts and generation of SSL certificates with Let's Encrypt.
- Docker 19.03 or higher
- Docker Compose 1.27 or higher
- apache2-utils latest version
- Download the latest version
- Generate a password for the Traefik admin user:
htpasswd -nb admin your_secure_password
- Edit the traefik_dynamic.toml file and update with the generated password
- Create a new Docker network called
web
- Create a new Docker network called
internal
- Create an empty file that will hold your Let’s Encrypt information:
touch acme.json ; chmod 600 acme.json
- Running the Traefik Container:
docker-compose up -d
If you are looking for a script for initial server settings on DigitalOcean, Linone, AWS EC2 or similar, see the repository cubedserver/server-setup
- Fork this repository!
- Create your feature from the develop branch: git checkout -b feature/my-new-feature
- Write and comment your code
- Commit your changes:
git commit -am 'Add some feature'
- Push the branch:
git push origin feature/my-new-feature
- Make a pull request to the branch develop
Licensed under the MIT License.