From 58f4b287ca212041a3c1bf0afb30b5bfdbddbe4e Mon Sep 17 00:00:00 2001 From: Mitch Talmadge Date: Fri, 13 Dec 2019 17:31:48 -0700 Subject: [PATCH] Add more example configs. --- example-configs/ads/docker-compose.yml | 20 ++++++++++++++++++++ example-configs/mcmyadmin/docker-compose.yml | 15 ++++++++------- example-configs/minecraft/docker-compose.yml | 17 +++++++++++++++++ 3 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 example-configs/ads/docker-compose.yml create mode 100644 example-configs/minecraft/docker-compose.yml diff --git a/example-configs/ads/docker-compose.yml b/example-configs/ads/docker-compose.yml new file mode 100644 index 0000000..197d2fd --- /dev/null +++ b/example-configs/ads/docker-compose.yml @@ -0,0 +1,20 @@ +# This configuration creates one ADS instance, which can be used to create multiple "child" instances. +# This is a good choice if you want to run multiple game servers, even of different types. +version: "3" +services: + amp: + container_name: amp + image: mitchtalmadge/amp-dockerized:latest + ports: + - 8080:8080 + - 25565:25565 # Example port for Minecraft server. + - 27015:27015 # Example port for GMod server. + # Add more ports as needed for whatever game servers you'll be running. Create the game instances through ADS web UI. + volumes: + - ./ampdata:/ampdata + environment: + - "UID=120" # Change according to which user on the host will own the ampdata volume. + - "GID=124" + - "LICENCE=#########-####-#####-##########" + - "MODULE=ADS" + restart: unless-stopped diff --git a/example-configs/mcmyadmin/docker-compose.yml b/example-configs/mcmyadmin/docker-compose.yml index 668e9db..db1c9ef 100644 --- a/example-configs/mcmyadmin/docker-compose.yml +++ b/example-configs/mcmyadmin/docker-compose.yml @@ -1,16 +1,17 @@ +# This configuration creates one McMyAdmin (Minecraft) instance. No ADS instances are created. version: "3" services: amp: container_name: amp image: mitchtalmadge/amp-dockerized:latest ports: - - 25565:25565 # Game Port. Format: HOST:CONTAINER - - 25570:8080 # Web UI Port. + - 25565:25565 + - 25570:8080 volumes: - - ./data:/ampdata # Without a volume, all AMP & game data will be wiped on container restart. + - ./ampdata:/ampdata environment: - - "UID=120" # This user, and the group below, will own the ./data mount specified above. - - "GID=124" # When not specified, the user and group will be 1000, 1000 (first non-system user in Linux). - - "LICENCE=#########-####-#####-##########" # Your McMyAdmin licence goes here. + - "UID=120" # Change according to which user on the host will own the ampdata volume. + - "GID=124" + - "LICENCE=#########-####-#####-##########" - "MODULE=McMyAdmin" - restart: unless-stopped # This starts the image when your host boots up, and if it ever goes down it will restart. + restart: unless-stopped diff --git a/example-configs/minecraft/docker-compose.yml b/example-configs/minecraft/docker-compose.yml new file mode 100644 index 0000000..26b89ec --- /dev/null +++ b/example-configs/minecraft/docker-compose.yml @@ -0,0 +1,17 @@ +# This configuration creates one Minecraft instance. No ADS instances are created. +version: "3" +services: + amp: + container_name: amp + image: mitchtalmadge/amp-dockerized:latest + ports: + - 25565:25565 + - 25570:8080 + volumes: + - ./ampdata:/ampdata + environment: + - "UID=120" # Change according to which user on the host will own the ampdata volume. + - "GID=124" + - "LICENCE=#########-####-#####-##########" + - "MODULE=Minecraft" + restart: unless-stopped