#docker-compose.yml
version: "3"
services:
traefik:
image: traefik:alpine
labels:
- traefik.enable=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "6060:80"
- "6080:8080"
nginx:
image: nginx:alpine
labels:
- traefik.enable=true
apache:
image: httpd:alpine
labels:
- traefik.enable=true
tomcat:
image: tomcat:alpine
labels:
- traefik.enable=true
mysqldb:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD="root"
traefik.toml
defaultEntryPoints = ["http"]
loglevel = "INFO"
sendAnonymousUsage = true
[docker]
endpoint = "unix:///var/run/docker.sock"
exposedByDefault = false
[api]
dashboard = true
entrypoint = "dashboard"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.dashboard]
address = ":8080"
if i try http://localhost:6080