Endlessh Stack: replace the old depricated image with endlessh-go

This commit is contained in:
Aroy-Art 2025-03-24 10:43:40 +01:00
parent 7bf88af02a
commit 68244f8497
Signed by: Aroy
GPG key ID: 583642324A1D2070
2 changed files with 42 additions and 16 deletions

View file

@ -1,27 +1,46 @@
######################################################
# Endlessh
# URL: https://github.com/linuxserver/docker-endlessh
# URL: https://github.com/shizunge/endlessh-go
######################################################
version: "2.1"
name: endlessh-stack
services:
endlessh:
image: lscr.io/linuxserver/endlessh:latest
container_name: endlessh
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Stockholm
- MSDELAY=10000 #optional
- MAXLINES=32 #optional
- MAXCLIENTS=4096 #optional
- LOGFILE=false #optional
- BINDFAMILY= #optional
# container_name: endlessh
image: shizunge/endlessh-go:latest
restart: unless-stopped
#user: root
command:
- "-logtostderr"
- "-v=1"
- "-geoip_supplier=max-mind-db"
- "-max_mind_db=/geo-data/GeoLite2-City.mmdb"
networks:
- example_network
ports:
- 22:2222 # SSH port
- 127.0.0.1:2112:2112 # Prometheus metrics port
volumes:
- ./Data:/config #optional
- ./geo-data/:/geo-data/:ro # geoip data
logging:
driver: loki
options:
loki-url: "${LOKI_URL}"
ports:
- 22:2222
geoipupdate:
image: ghcr.io/maxmind/geoipupdate:v5
# container_name: geoipupdate
restart: unless-stopped
security_opt: [ "no-new-privileges:true" ]
volumes:
- ./geo-data/:/usr/share/GeoIP/
environment:
- GEOIPUPDATE_EDITION_IDS=GeoLite2-City
- GEOIPUPDATE_FREQUENCY=72
- GEOIPUPDATE_ACCOUNT_ID=${MAXMIND_ACCOUNT_ID}
- GEOIPUPDATE_LICENSE_KEY=${MAXMIND_LICENSE_KEY}
logging:
driver: loki
options:
loki-url: "${LOKI_URL}"

View file

@ -0,0 +1,7 @@
# the urls to where your loki instance is running
LOKI_URL=
# Maxminds accont login info
MAXMIND_ACCOUNT_ID=
MAXMIND_LICENSE_KEY=