mirror of
https://github.com/PAPAMICA/docker-compose-collection.git
synced 2026-01-19 00:37:32 +01:00
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
# Maintainer: Drack0rr
|
|
# Update: 2022-07-26
|
|
|
|
|
|
#& type: 3
|
|
#& title: Openspeedtest
|
|
#& description: Speedtest for Home/Office LAN
|
|
#& note: Website: <a href='https://openspeedtest.com/' target='_blank' rel='noopener'>Openspeedtest.com</a>
|
|
#& categories: SelfHosted, Drackorr
|
|
#& platform: linux
|
|
#& logo: https://img.papamica.com/logo/openspeedtest.png
|
|
|
|
#% SERVICE: Name of the service (No spaces or points) [Openspeedtest]
|
|
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
|
|
#% URL: Service URL (Example: service.drackorr.fr or service.com)
|
|
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
|
|
|
|
# Work with Portainer
|
|
version: "3.8"
|
|
services:
|
|
openspeedtest:
|
|
image: openspeedtest/latest:latest
|
|
container_name: $SERVICE
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: curl --fail http://localhost:3000 || exit 1
|
|
interval: 1m
|
|
timeout: 30s
|
|
retries: 3
|
|
networks:
|
|
- default
|
|
labels:
|
|
- "autoupdate=monitor" # https://github.com/PAPAMICA/container-updater
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.$SERVICE.rule=Host(`$URL`)"
|
|
- "traefik.http.routers.$SERVICE.tls=true"
|
|
- "traefik.http.routers.$SERVICE.tls.certresolver=http"
|
|
- "traefik.docker.network=$NETWORK"
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: $NETWORK
|