Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Commit b2e0a92

Browse files
committed
beautify readme
1 parent e623863 commit b2e0a92

File tree

1 file changed

+66
-65
lines changed

1 file changed

+66
-65
lines changed

README.md

Lines changed: 66 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,133 @@
1-
## docker-amp
1+
# docker-amp
22

33
[![docker hub](https://img.shields.io/badge/docker_hub-link-blue?style=for-the-badge&logo=docker)](https://hub.docker.com/r/vcxpz/amp) ![docker image size](https://img.shields.io/docker/image-size/vcxpz/amp?style=for-the-badge&logo=docker) [![auto build](https://img.shields.io/badge/docker_builds-automated-blue?style=for-the-badge&logo=docker?color=d1aa67)](https://github.com/hydazz/docker-amp/actions?query=workflow%3A"Auto+Builder+CI") [![codacy branch grade](https://img.shields.io/codacy/grade/b5ce6e0b1d3742bca4b1a41ac4ab7068/main?style=for-the-badge&logo=codacy)](https://app.codacy.com/gh/hydazz/docker-amp)
44

55
Fork of [MitchTalmadge/AMP-dockerized](https://github.com/MitchTalmadge/AMP-dockerized/)
66

77
[AMP](https://cubecoders.com/AMP) is short for Application Management Panel. It's CubeCoders next-generation server administration software built for both users, and service providers. It supports both Windows and Linux based servers and allows you to manage all your game servers from a single web interface.
88

9-
## Usage
10-
11-
docker run -d \
12-
--name=amp \
13-
-e PUID=1000 \
14-
-e PGID=1000 \
15-
-e TZ=Australia/Melbourne \
16-
-p 8080:8080 \
17-
-e USERNAME= `#webui username` \
18-
-e PASSWORD= `#webui password` \
19-
-e LICENCE= `#see below` \
20-
-e MODULE= `#see below` \
21-
-v <path to appdata>:/config \
22-
--mac-address=xx:xx:xx:xx:xx:xx `#see below` \
23-
--restart unless-stopped \
24-
vcxpz/amp
9+
# Usage
10+
11+
```bash
12+
docker run -d \
13+
--name=amp \
14+
-e PUID=1000 \
15+
-e PGID=1000 \
16+
-e TZ=Australia/Melbourne \
17+
-p 8080:8080 \
18+
-e USERNAME= `#webui username` \
19+
-e PASSWORD= `#webui password` \
20+
-e LICENCE= `#see below` \
21+
-e MODULE= `#see below` \
22+
-v <path to appdata>:/config \
23+
--mac-address=xx:xx:xx:xx:xx:xx `#see below` \
24+
--restart unless-stopped \
25+
vcxpz/amp
26+
```
2527

2628
[![template](https://img.shields.io/badge/unraid_template-ff8c2f?style=for-the-badge&logo=docker?color=d1aa67)](https://github.com/hydazz/docker-templates/blob/main/hydaz/amp.xml)
2729

28-
## Please Note
30+
# Please Note
2931

3032
As it takes more than 10 seconds (the default timeout for Docker) for AMP to do a graceful shutdown, make sure you have no running modules. Stopping your container via Docker while you have running modules may cause corruption as Docker will kill the container. The easiest way to do a graceful shutdown is to open a console to the container and execute `amp stop`. This command basically does `s6-svc -to /var/run/s6/services/amp`. Which sends a SIGTERM to AMP then tells `s6` not to restart AMP after the service it is terminated.
3133

32-
## Supported Modules
34+
# Supported Modules
3335

3436
**Will Work:**
3537

36-
- Java applications such as Minecraft Java, Minecraft Bedrock + others
38+
- Java applications such as Minecraft Java, Minecraft Bedrock + others
3739

3840
**Won't Work:**
3941

40-
- [Everything Else](https://github.com/CubeCoders/AMP/wiki/Supported-Applications-Compatibility)
42+
- [Everything Else](https://github.com/CubeCoders/AMP/wiki/Supported-Applications-Compatibility)
4143

42-
## MAC Address (Important)
44+
# MAC Address (Important)
4345

44-
AMP is designed to detect hardware changes and will de-activate all instances when something significant changes.
45-
This is to stop people from sharing pre-activated instances and bypassing the licencing server. One way of detecting
46-
changes is to look at the MAC address of the host's network card. A change here will de-activate instances.
46+
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.
4747

48-
By default, Docker assigns a new MAC address to a container every time it is restarted. Therefore, unless you want to
49-
painstakingly re-activate all your instances on every server reboot, you need to assign a permanent MAC address.
48+
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.
5049

51-
For most people, this can be accomplished by generating a random MAC address in Docker's acceptable range.
52-
The instructions to do so are as follows:
50+
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:
5351

5452
**Linux**
5553

56-
echo $RANDOM | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
54+
```bash
55+
echo $RANDOM | md5sum | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
56+
```
5757

5858
**MacOS**
5959

60-
echo $RANDOM | md5 | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
60+
```bash
61+
echo $RANDOM | md5 | sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
62+
```
6163

6264
**Windows**
6365

64-
- Visit this page:
65-
- Put `02:42:AC` in as the prefix
66-
- Choose the format with colons `:`
67-
- Generate
66+
- Visit this page:
67+
- Put `02:42:AC` in as the prefix
68+
- Choose the format with colons `:`
69+
- Generate
6870

69-
###
71+
# #
7072

71-
- Copy the generated MAC and use it when starting the container.
73+
- Copy the generated MAC and use it when starting the container.
7274

73-
- For `docker run`, use the following flag: (Substitute your generated MAC)
75+
- For `docker run`, use the following flag: (Substitute your generated MAC)
7476

75-
`--mac-address="02:42:AC:XX:XX:XX"`
77+
`--mac-address="02:42:AC:XX:XX:XX"`
7678

77-
- For Docker Compose, use the following key next to `image`:
79+
- For Docker Compose, use the following key next to `image`:
7880

79-
`mac_address: 02:42:AC:XX:XX:XX`
81+
`mac_address: 02:42:AC:XX:XX:XX`
8082

8183
If you have a unique network situation, a random MAC may not work for you. In that case you will need to come up with your own solution to prevent address conflicts.
8284

8385
If you need help with any of this, please make an issue.
8486

85-
## Ports
87+
# Ports
8688

8789
Here's a rough (and potentially incorrect) list of default ports for the various modules. Each module also exposes port 8080 for the Web UI (can be changed with environment variables). If you find an inaccuracy, open an issue!
8890

89-
| Module Name | Default Ports |
90-
| ----------- | --------------------------------------- |
91-
| `ADS` | No additional ports. |
92-
| `McMyAdmin` | TCP 25565 |
93-
| `Minecraft` | TCP 25565 (Java) or UDP 19132 (Bedrock) |
91+
Module Name | Default Ports
92+
----------- | ---------------------------------------
93+
`ADS` | No additional ports.
94+
`McMyAdmin` | TCP 25565
95+
`Minecraft` | TCP 25565 (Java) or UDP 19132 (Bedrock)
9496

9597
Just a quick note about ports: some games use TCP, some games use UDP. Make sure you are using the right protocol. Don't fall into the trap of accidentally mapping a TCP port for a UDP game -- you won't be able to connect.
9698

97-
## Environment Variables
99+
# Environment Variables
98100

99-
### Module
101+
## Module
100102

101-
| Name | Description | Default Value |
102-
| -------- | ---------------------------------------------------------------- | ------------- |
103-
| `MODULE` | Which Module to use for the main instance created by this image. | `ADS` |
103+
Name | Description | Default Value
104+
-------- | ---------------------------------------------------------------- | -------------
105+
`MODULE` | Which Module to use for the main instance created by this image. | `ADS`
104106

105107
To run multiple game servers under this image, use the default value of `ADS` (Application Deployment Service) which allows you to create various modules from the web ui.
106108

107-
To be clear, this Docker image creates ONE instance by default. If you want to create more, use `ADS` as the first
108-
instance, and create the rest with the web UI. Otherwise, you can pick any other module from the list.
109+
To be clear, this Docker image creates ONE instance by default. If you want to create more, use `ADS` as the first instance, and create the rest with the web UI. Otherwise, you can pick any other module from the list.
109110

110111
Here are the accepted values for the `MODULE` variable:
111112

112-
| Module Name | Description |
113-
| ----------- | ------------------------------------------------------------------------------------------------------------- |
114-
| `ADS` | Application Deployment Service. Used to manage multiple modules. Need multiple game servers? Pick this. |
115-
| `McMyAdmin` | If you have a McMyAdmin Licence, this will be picked for you no matter what. It is equivalent to `Minecraft`. |
116-
| `Minecraft` | Includes Java (Spigot, Bukkit, Paper, etc.) and Bedrock servers. |
113+
Module Name | Description
114+
----------- | -------------------------------------------------------------------------------------------------------------
115+
`ADS` | Application Deployment Service. Used to manage multiple modules. Need multiple game servers? Pick this.
116+
`McMyAdmin` | If you have a McMyAdmin Licence, this will be picked for you no matter what. It is equivalent to `Minecraft`.
117+
`Minecraft` | Includes Java (Spigot, Bukkit, Paper, etc.) and Bedrock servers.
117118

118-
## Volumes
119+
# Volumes
119120

120-
| Mount Point | Description |
121-
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
122-
| `/config` | **Required!** This volume contains everything AMP needs to run. This includes all your instances, all their game files, the web ui sign-in info, etc. Essentially, without creating this volume, AMP will be wiped on every boot. |
121+
Mount Point | Description
122+
----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
123+
`/config` | **Required!** This volume contains everything AMP needs to run. This includes all your instances, all their game files, the web ui sign-in info, etc. Essentially, without creating this volume, AMP will be wiped on every boot.
123124

124125
**See other variables on the official [README](https://github.com/MitchTalmadge/AMP-dockerized/)**
125126

126-
## Upgrading AMP
127+
# Upgrading AMP
127128

128129
To upgrade, all you have to do is pull the latest Docker image. We automatically check for AMP updates daily so there may be some delay when an update is released to when the image is updated. To do a force upgrade, open a console to the container and executing `amp upgrade`. This will upgrade all modules to the latest version available.
129130

130-
## Fixing Appdata Permissions
131+
# Fixing Appdata Permissions
131132

132133
If you ever accidentally screw up the permissions on the appdata folder, run `fix-perms` within the container. This will restore most of the files/folders with the correct permissions.

0 commit comments

Comments
 (0)