Created
January 20, 2025 15:23
-
-
Save diegofcornejo/d2ff82981ea78eb991da602d571ea34e to your computer and use it in GitHub Desktop.
Neko rooms - docker compose
This file contains hidden or 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
networks: | |
default: | |
attachable: true | |
name: "neko-rooms-net" | |
services: | |
neko-rooms: | |
image: "m1k1o/neko-rooms:latest" | |
restart: "unless-stopped" | |
environment: | |
- "TZ=America/Guatemala" | |
- "NEKO_ROOMS_MUX=true" | |
- "NEKO_ROOMS_EPR=59000-59049" | |
- "NEKO_ROOMS_NAT1TO1=192.99.17.152" # IP address of your server that is reachable from client | |
- "NEKO_ROOMS_INSTANCE_URL=https://neko.srv-01.diegocornejo.com" # external URL | |
- "NEKO_ROOMS_INSTANCE_NETWORK=neko-rooms-net" | |
- "NEKO_ROOMS_TRAEFIK_ENABLED=false" | |
- "NEKO_ROOMS_PATH_PREFIX=/room/" | |
- "NEKO_ROOMS_STORAGE_ENABLED=true" | |
- "NEKO_ROOMS_STORAGE_INTERNAL=/data" | |
- "NEKO_ROOMS_STORAGE_EXTERNAL=/tools/neko-rooms/data" | |
ports: | |
- "8585:8080" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
- "/tools/neko-rooms/data:/data" |
This file contains hidden or 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
server { | |
listen 80; | |
server_name neko.myserver.com; | |
# Public rooms: no authentication | |
location ~ ^/room/.*$ { | |
proxy_pass http://127.0.0.1:8585; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
} | |
# Admin Panel Restricted Access | |
location / { | |
auth_basic "Restricted Access"; | |
auth_basic_user_file /etc/nginx/.htpasswd; | |
error_log /var/log/nginx/auth_error.log warn; | |
proxy_pass http://127.0.0.1:8585; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment