move docker compose to traefik.

This commit is contained in:
Miroslav Šedivý
2022-07-31 20:55:25 +02:00
parent f155b0868c
commit fe13a63104
4 changed files with 5 additions and 5 deletions
-43
View File
@@ -1,43 +0,0 @@
version: "3.5"
#
# This docker compose needs .env file.
# Copy .env.example to .env and modify.
#
networks:
default:
attachable: "true"
name: "${NEKO_ROOMS_TRAEFIK_NETWORK}"
services:
traefik:
image: "traefik:2.4"
restart: "unless-stopped"
environment:
- "TZ"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik/traefik.yml:/etc/traefik/traefik.yml:ro"
- "./traefik/usersfile:/usersfile:ro"
- "./traefik/acme.json:/acme.json"
- "./traefik/config:/config"
neko-rooms:
image: "m1k1o/neko-rooms:latest"
restart: "unless-stopped"
env_file:
- ".env"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
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"