Prerequisite Installations#
- CubeCoders AMP
- A game server of your choice and the port needed for exposure
- Traefik
- Access to edit static and dynamic configuration files
- Docker/Docker Compose
- Ability to restart Traefik and expose new ports
1. Create a DHCP Reservation#
After installing AMP, assign the server a static IP address via DHCP reservation (preferred).
- This ensures Traefik routing stays consistent when load-balancing to AMP or game servers.
2. Edit Traefik Dynamic Configuration#
Create an entry in the config.yml dynamic configuration file using the hostname of your choice.
- By default, AMP routes its management interface through port
8080. - A Traefik dynamic configuration can be added to resolve the IP address with a hostname.
Inside the http > routers block, add:
# routers
http:
routers:
amp-server-internal:
entryPoints:
- "https"
rule: "Host(`play.lab.wetnight.family`)"
middlewares:
- default-chain
tls: {}
service: amp-server
# end routersInside the http > services block, add:
http:
# services
services:
amp-server:
loadBalancer:
servers:
- url: "http://AMP_IP:8080"
passHostHeader: true
# end servicesAdd a UDP block to the top or bottom of the config.yml dynamic configuration file (outside of the http block):
- Note: the services block is inside of the UDP block. This is not created inside of the http services block!
# Custom entry point settings for AMP server
# Add entry points when new game servers are created to preserve play.lab.wetnight.family routing
udp:
routers:
minecraft-bedrock:
entryPoints:
- "minecraft-udp"
service: minecraft-bedrock
services:
minecraft-bedrock:
loadBalancer:
ervers:
- address: "AMP_IP:19132"
# End custom entry point settings for AMP serverSave and exit.
3. Edit Traefik Static Configuration#
Add a custom entryPoint to the traefik.yml static configuration file (inside of the entryPoint block):
# custom entry point for AMP server
minecraft-udp:
address: ":19132/udp"Save and exit.
4. Create DNS Record#
Create play.lab.wetnight.family in the Git-managed Pi-hole DNS inventory as a CNAME to traefik.lab.wetnight.family. This is an example service name; use the actual name selected for the AMP deployment in both DNS and the Traefik router. The Traefik ingress A record resolves to 172.16.11.203.
Client Request > Pi-hole-01 or Pi-hole-02 > play.lab.wetnight.family > traefik.lab.wetnight.family > 172.16.11.203 > TraefikValidate the new name against both Pi-hole resolvers (172.16.11.201 and 172.16.11.202) after their Git deployments complete. See DNS Configuration for the current DNS workflow. Ensure the AMP backend address in the Traefik service is reachable from the Traefik host.
5. Edit Traefik’s Docker Compose File#
Expose the game server port in the Traefik docker-compose.yml configuration file. Add (port will vary depending on server being added):
ports:
- 19132:19132/udp # Minecraft Bedrock Edition default port (allows Traefik to route through play.lab.wetnight.family instead of IP address and port) | expose new ports as needed for new serversSave and exit.
6. Redeploy Traefik#
Redeploy Traefik’s Docker container. Repeat these steps for each server added.
Reply by EmailNote: Traefik supports UDP and TCP. Repeat with TCP if necessary.