This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
mkdir -p /var/lib/docker/custom_container/traefik
chmod 755 /var/lib/docker/custom_container/traefik
chmod 750 /var/lib/docker/custom_container/traefik/certs
chmod 644 /var/lib/docker/custom_container/traefik/certs/cert.crt
chmod 644 /var/lib/docker/custom_container/traefik/certs/cert.key
https://it-infrastructure.solutions/generating-some/
docker network create intranet
nano /var/lib/docker/custom_container/traefik/docker-compose.yml
version: '3'
services:
traefik:
image: traefik:1.7.0
ports:
- 4443:4443
- 8090:8090
networks:
- intranet
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/custom_container/traefik/traefik.toml:/traefik.toml
- /var/lib/docker/custom_container/traefik/certs/:/certs/
container_name: traefik
networks:
intranet:
external: true
nano /var/lib/docker/custom_container/traefik/traefik.toml
debug = false
logLevel = "DEBUG"
defaultEntryPoints = ["https"]
[web]
address = ":8090"
[entryPoints]
[entryPoints.https]
address = ":4443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/certs/cert.crt"
keyFile = "/certs/cert.key"
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "ivbdom.local"
watch = true
exposedbydefault = false
docker-compose up -d