Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Created September 25, 2023 13:00
Show Gist options
  • Select an option

  • Save arsalanses/fff6026de9e575ef6710b9d5bb5f802b to your computer and use it in GitHub Desktop.

Select an option

Save arsalanses/fff6026de9e575ef6710b9d5bb5f802b to your computer and use it in GitHub Desktop.
thelounge
services:
traefik:
image: traefik:v2.10.4
restart: unless-stopped
command:
- "--serverstransport.insecureskipverify=true"
- "--log.level=ERROR"
- "--accesslog=true"
- "--providers.docker=true"
- "--providers.docker.network=web"
- "--providers.docker.exposedbydefault=false"
- "--providers.file.directory=/configs/"
- "--providers.file.watch=true"
- "--api=true"
- "--api.dashboard=true"
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
# - "--certificatesresolvers.letsencrypt.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http"
- "[email protected]"
- "--certificatesresolvers.letsencrypt.acme.storage=acme.json"
- "--global.sendAnonymousUsage=false"
networks:
- web
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./acme.json:/acme.json"
- "./configs/:/configs/"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "2"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefikpanel.entrypoints=http"
- "traefik.http.routers.traefikpanel.rule=Host(`traefik.example.com`)"
# - "traefik.http.routers.traefikpanel.tls.certresolver=letsencrypt"
- "traefik.http.routers.traefikpanel.service=api@internal"
- "traefik.http.middlewares.traefikpanel-auth.basicauth.users=admin:$$2y$$05$$N5yFKfxN5f4h5Hyn7E2mW.YWriAUA1q3HO1HiYdoaYns4KOrjK5jC"
- "traefik.http.routers.traefikpanel.middlewares=traefikpanel-auth"
thelounge:
image: lscr.io/linuxserver/thelounge:latest
container_name: thelounge
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- ./config:/config
restart: unless-stopped
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.thelounge.rule=Host(`irc.example.com`)"
# - "traefik.http.routers.thelounge.tls.certresolver=letsencrypt"
- "traefik.http.routers.thelounge.entrypoints=http"
- "traefik.http.services.thelounge.loadbalancer.server.port=9000"
- "traefik.http.middlewares.thelounge-auth.basicauth.users=admin:$$2y$$05$$N5yFKfxN5f4h5Hyn7E2mW.YWriAUA1q3HO1HiYdoaYns4KOrjK5jC"
- "traefik.http.routers.thelounge.middlewares=thelounge-auth"
networks:
web:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment