This is a basic docker-compose and toml for Traefik to create a development environment. The applications in the compose file are just in place for proof of concept. Replace them for your needs.
- Clone and change into the directory
- You must create the docker network before bringing up the environment.
docker network create proxy
- Run the command
docker-compose up
to view the logs ordocker-compose up -d
for it to run in the background.
This is a formated template that anyone can use for local development.
- Static nginx website at http://localhost
- Influxdb 2.0 at http://influx.localhost
- Dashboard with basic auth http://web.localhost Login info (admin:supersecret)
If you want to replace the admin login information in the traefik.toml you will need to install htpasswd.
sudo apt-get install apache2-utils -y
htpasswd -nb <user> <secret_password>
admin:$apr1$A3524hz3$4k45BqlgN1aiwOs1pjMD9. <--user:admin password:supersecret
Copy and replace that information in the toml.
Shortly I will add on how to configure automatic ssl.