docker network ls
docker network create proxy
docker network ls
Now run the htpasswd
command to generate a password for traefik dashboard authen.
htpasswd -nb admin password
Keep the result in your note.
admin:$apr1$hEgpZUN2$OYG3KwpzI3T1FqIg9LIbi.
Create a new directory 'traefik' for traefik configurae.
mkdir -p traefik/
cd traefik/
Create Traefik Configuration
nano traefik.toml
nano docker-compose.yml
Build the container using docker compose command below.
docker-compose up -d