Created
July 29, 2024 07:33
-
-
Save fishuke/7e757e6d210a72ed1f6d1280b94aa321 to your computer and use it in GitHub Desktop.
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
version: "3.5" | |
networks: | |
default: | |
attachable: true | |
name: "${NEKO_ROOMS_TRAEFIK_NETWORK}" | |
services: | |
traefik: | |
image: "traefik:2.4" | |
restart: "unless-stopped" | |
environment: | |
- "TZ" | |
ports: | |
- target: 80 | |
published: 80 | |
protocol: "tcp" | |
mode: "host" | |
- target: 443 | |
published: 443 | |
protocol: "tcp" | |
mode: "host" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
- "./traefik.yml:/etc/traefik/traefik.yml:ro" | |
- "./usersfile:/usersfile:ro" | |
- "./acme.json:/acme.json" | |
- "./config:/config" | |
neko-rooms: | |
image: "m1k1o/neko-rooms:latest" | |
restart: "unless-stopped" | |
env_file: | |
- ".env" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
- "/opt/neko-rooms/data:/data" | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.services.neko-rooms-frontend.loadbalancer.server.port=8080" | |
- "traefik.http.routers.neko-rooms.entrypoints=${NEKO_ROOMS_TRAEFIK_ENTRYPOINT}" | |
- "traefik.http.routers.neko-rooms.rule=Host(`${NEKO_ROOMS_TRAEFIK_DOMAIN}`)" | |
- "traefik.http.routers.neko-rooms.tls=true" | |
- "traefik.http.routers.neko-rooms.tls.certresolver=${NEKO_ROOMS_TRAEFIK_CERTRESOLVER}" | |
- "traefik.http.routers.neko-rooms.middlewares=basicauth@file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment