Skip to content

chore: Docker compose example#71

Open
albertok wants to merge 1 commit intofoxssake:mainfrom
albertok:docker-compose-file
Open

chore: Docker compose example#71
albertok wants to merge 1 commit intofoxssake:mainfrom
albertok:docker-compose-file

Conversation

@albertok
Copy link

📓 Description

Docker compose file for easy self hosting.

☑️ Checklist

  • Documentation is up to date

- "8890:8890" # TCP port for client connections
- "8891:8891" # HTTP port for metrics
- "8809:8809/udp" # UDP port for remote registration
- "49152-51200:49152-51200/udp" # UDP relay ports

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last time I've checked, exposing ranges could get really slow, and the alternative was to use the host network driver instead. Will check again!

@@ -0,0 +1,14 @@
version: '3.8'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker Compose v5.0.1 complains that this is an obsolete attribute

@elementbound
Copy link

@albertok thanks for the PR! I very much agree that it is best to have a compose example too! The current version I think is a bit brittle, because Docker takes a long time to bind and expose the specified 2+2048 ports, and fails if one of them is already in use.

However, these wouldn't matter much when deploying to a dedicated host machine, since that won't have those ports in use already ( ideally ), and once it starts, it's good.

A workaround for both of the above is to use network_mode: host.

Any thoughts on how to handle this? My guess is to add a line with the workaround, but as a comment, e.g. # network_mode: host # <- For local use

Also just created #72, will highlight all our compose experience there too 😄

@elementbound elementbound changed the title docker compose for easy self hosting chore: Docker compose example Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments