-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
docker-compose.http.yml
50 lines (47 loc) · 1.62 KB
/
docker-compose.http.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.5"
networks:
default:
attachable: true
name: "neko-rooms-traefik"
services:
traefik:
image: "traefik:2.4"
restart: "unless-stopped"
environment:
- "TZ=Europe/Vienna"
command:
- "--providers.docker=true"
- "--providers.docker.watch=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=neko-rooms-traefik"
- "--entrypoints.web.address=:8080"
ports:
- target: 8080
published: 8080
protocol: "tcp"
mode: "host"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
# OPTIONAL: Enable authentication.
# - "./traefik/usersfile:/usersfile:ro"
neko-rooms:
image: "m1k1o/neko-rooms:latest"
restart: "unless-stopped"
environment:
- "TZ=Europe/Vienna"
- "NEKO_ROOMS_EPR=59000-59049"
- "NEKO_ROOMS_NAT1TO1=10.8.0.1" # IP address of your server
- "NEKO_ROOMS_TRAEFIK_ENTRYPOINT=web"
- "NEKO_ROOMS_TRAEFIK_NETWORK=neko-rooms-traefik"
- "NEKO_ROOMS_INSTANCE_URL=http://10.8.0.1:8080/" # external URL
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=web"
- "traefik.http.routers.neko-rooms.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.neko-rooms.priority=1"
# OPTIONAL: Enable authentication.
# - "traefik.http.middlewares.nrooms-auth.basicauth.usersfile=/usersfile"
# - "traefik.http.routers.neko-rooms.middlewares=nrooms-auth"