🧩 Make your local game server accessible by everyone with your custom domain!
769
docker-compose.yml fileservices:
ncfs:
image: barbarbar338/ncfs:buildx-latest
container_name: ncfs
restart: unless-stopped
ports:
- 4040:4040
networks:
- ncfs-net
environment:
NGROK_TCP_PORT: <game server port here>
NGROK_AUTH_TOKEN: <Your NGROK auth token here>
CLOUDFLARE_AUTH_EMAIL: <Your Cloudflare email here>
CLOUDFLARE_API_KEY: <Your Cloudflare Global API key here>
# You can also use API Token instead of API Key for better security
CLOUDFLARE_API_TOKEN: <Your Cloudflare API token here>
CLOUDFLARE_ZONE_ID: <Your domain's Cloudflare Zone ID here>
CLOUDFLARE_CNAME_RECORD_NAME: server.example.com
# If the game supports SRV records, use the standard format
CLOUDFLARE_SRV_RECORD: _service._tcp.example.com
docker-compose.yml file as you wish.docker-compose up -d and waitSRV records allow clients to look up connection information (including port) using just a domain name. For games that support SRV records, use the standard format:
_service._protocol.domain.tld
For example:
_minecraft._tcp.example.comdocker-compose up -d -f <template file>Feel free to use GitHub's features.
git checkout -b feature/my-feature)git commit -m 'my awesome feature my-feature')git push origin feature/my-feature)Give a ⭐️ if this project helped you!
Content type
Image
Digest
sha256:d9c4b983f…
Size
21.8 MB
Last updated
about 1 year ago
docker pull barbarbar338/ncfs:ngrok-latest