clean up
This commit is contained in:
31
docs/examples/labels.example
Normal file
31
docs/examples/labels.example
Normal file
@@ -0,0 +1,31 @@
|
||||
# Enable Traefik for this container
|
||||
traefik.enable=true
|
||||
|
||||
# Docker Network
|
||||
traefik.docker.network=traefik
|
||||
|
||||
# Route requests based on Host
|
||||
traefik.http.routers.game-timer.rule=Host(`game-timer.virtonline.eu`)
|
||||
# Specify the entrypoint ('websecure' for HTTPS)
|
||||
traefik.http.routers.game-timer.entrypoints=web-secure
|
||||
traefik.http.routers.game-timer.tls=true
|
||||
traefik.http.routers.game-timer.tls.certResolver=default
|
||||
# Link the router to the service defined below
|
||||
traefik.http.routers.game-timer.service=game-timer
|
||||
|
||||
# Point the service to the container's port
|
||||
traefik.http.services.game-timer.loadbalancer.server.port=80
|
||||
|
||||
# Declaring the user list
|
||||
#
|
||||
# Note: when used in docker-compose.yml all dollar signs in the hash need to be doubled for escaping.
|
||||
# To create a user:password pair, the following command can be used:
|
||||
# echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g
|
||||
#
|
||||
# Also note that dollar signs should NOT be doubled when they are not evaluated (e.g. Ansible docker_container module).
|
||||
# for docker lables use
|
||||
# `htpasswd -nb user password`
|
||||
traefik.http.middlewares.game-timer-auth.basicauth.users=user:$apr1$rFge2lVe$DpoqxMsxSVJubFLXu4OMr1
|
||||
|
||||
# Apply the middleware to the router
|
||||
traefik.http.routers.game-timer.middlewares=game-timer-auth
|
||||
30
docs/examples/virt-game-timer.service
Normal file
30
docs/examples/virt-game-timer.service
Normal file
@@ -0,0 +1,30 @@
|
||||
[Unit]
|
||||
Description=virt-game-timer (virt-game-timer)
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
DefaultDependencies=no
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment="HOME=/root"
|
||||
ExecStartPre=-/usr/bin/env sh -c '/usr/bin/env docker kill virt-game-timer 2>/dev/null || true'
|
||||
ExecStartPre=-/usr/bin/env sh -c '/usr/bin/env docker rm virt-game-timer 2>/dev/null || true'
|
||||
|
||||
ExecStart=/usr/bin/env docker run \
|
||||
--rm \
|
||||
--name=virt-game-timer \
|
||||
--log-driver=none \
|
||||
--network=traefik \
|
||||
--label-file=/virt/game-timer/labels \
|
||||
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,ro \
|
||||
game-timer:latest
|
||||
|
||||
ExecStop=-/usr/bin/env sh -c '/usr/bin/env docker kill virt-game-timer 2>/dev/null || true'
|
||||
ExecStop=-/usr/bin/env sh -c '/usr/bin/env docker rm virt-game-timer 2>/dev/null || true'
|
||||
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
SyslogIdentifier=virt-game-timer
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
BIN
docs/screenshots/screenshot1.png
Normal file
BIN
docs/screenshots/screenshot1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 320 KiB |
BIN
docs/screenshots/screenshot2.png
Normal file
BIN
docs/screenshots/screenshot2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 416 KiB |
Reference in New Issue
Block a user