-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4935e29
commit eb2c9a7
Showing
7 changed files
with
487 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '3' | ||
|
||
services: | ||
whoami: | ||
# A container that exposes an API to show its IP address | ||
image: traefik/whoami | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[Unit] | ||
Description=Traefik Hub | ||
After=network-online.target | ||
Wants=network-online.target systemd-networkd-wait-online.service | ||
|
||
[Service] | ||
Restart=on-abnormal | ||
User=traefik-hub | ||
Group=traefik-hub | ||
ExecStart=/usr/local/bin/traefik-hub --configfile=/etc/traefik-hub/traefik-hub.toml | ||
; Use private /tmp and /var/tmp, which are discarded after traefik stops. | ||
PrivateTmp=true | ||
; Hide /home, /root, and /run/user. Nobody may have access to SSH-keys. | ||
ProtectHome=true | ||
; Make /usr, /boot, /etc and possibly some more folders read-only. | ||
ProtectSystem=full | ||
; The following additional security directives only work with systemd v229 or later. | ||
; They further restrict privileges that can be gained by traefik. Uncomment if you like. | ||
; Note that you may have to add capabilities required by any plugins in use. | ||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE | ||
AmbientCapabilities=CAP_NET_BIND_SERVICE | ||
NoNewPrivileges=true | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
Oops, something went wrong.