Open Shadowgar opened 2 years ago
So, I found a way to get this installed and functional.
This is the app.json that is currently working.
{"host":"","protocol":"http","port_map":"8080","cpu_shares":10,"restart":"unless-stopped","label":"Amp","position":false,"index":"","icon":"","network_model":"bridge","image":"mitchtalmadge/amp-dockerized:latest","description":"","origin":"custom","ports":[{"container":"25565","host":"25565","protocol":"tcp","desc":"","type":0},{"container":"25566","host":"25566","protocol":"tcp","desc":"","type":0},{"container":"27015","host":"27015","protocol":"udp","desc":"","type":0},{"container":"8080","host":"8080","protocol":"tcp","desc":"","type":0}],"volumes":[{"container":"/home/amp/.ampdata","host":"/ampdata","type":0,"desc":""}],"envs":[{"container":"UID","host":"1000","desc":"","type":0},{"container":"GID","host":"1000","desc":"","type":0},{"container":"TZ","host":"Etc/UTC","desc":"","type":0},{"container":"LICENCE","host":" <INSERT YOUR LICENSE HERE>","desc":"","type":0},{"container":"MODULE","host":"ADS","desc":"","type":0}],"devices":[],"cap_add":[],"cmd":[],"privileged":false,"host_name":"Amp","container_name":"Amp","custom_id":"8bbfa116-94ce-419f-8d3a-3e6445941f63","enable_upnp":false,"version":"1.0"}
Also there is a MAC Address detector so as the instructions about the docker state: AMP is designed to detect hardware changes and will de-activate all instances when something significant changes. This is to stop people from sharing pre-activated instances and bypassing the licencing server. One way of detecting changes is to look at the MAC address of the host's network card. A change here will de-activate instances.
By default, Docker assigns a new MAC address to a container every time it is restarted. Therefore, unless you want to painstakingly re-activate all your instances on every server reboot, you need to assign a permanent MAC address.
For most people, this can be accomplished by generating a random MAC address in Docker's acceptable range. The instructions to do so are as follows:
Visit this page: https://miniwebtool.com/mac-address-generator/ Put 02:42:AC in as the prefix Choose the format with colons : Generate Copy the generated MAC and use it when starting the container. For docker run, use the following flag: (Substitute your generated MAC)
--mac-address="02:42:AC:XX:XX:XX"
For Docker Compose, use the following key next to image:
mac_address: 02:42:AC:XX:XX:XX
Place the --mac-address="YOUR GENERATED MAC" in the container commands.
Everything should be working after this.
App Information
Why do you want this app?
AMP has been the complete go to for running various game servers , including built in features for Steam gaming servers. It is something that I always install on any server I build for home.
Additional information?
No response