Traefik Configuration
Exoframe allows you to override Traefik configuration by editing ~/.config/exoframe/traefik/traefik.yml
.
Top-level properties from this file will override the default Exoframe config.
The default config looks like this:
log:
level: warning
filePath: /var/traefik/traefik.log
entryPoints:
web:
address: ':80'
providers:
docker:
endpoint: unix:///var/run/docker.sock
exposedByDefault: false
You can check the resulting config by inspecting ~/.config/exoframe/.internal/traefik/traefik.yml
.
Editing requires the removal of the Traefik instance and a restart of the Exoframe Server so that it can generate a new Traefik config.
Enabling Traefik Dashboard
- Edit the Traefik config in
~/.config/exoframe/traefik/traefik.yml
and add the following to it:
api:
dashboard: true
- Add the following labels to your Exoframe Server (or any other new deployment):
--label "traefik.http.routers.api.rule=Host(`traefik.localhost`)"
--label traefik.http.routers.api.service=api@internal
Caveat: Adding the aforementioned labels to Traefik itself does not seem to work for some reason. It is recommended to add them to the Exoframe Server or any other deployments you have.