Skip to content

Commit

Permalink
Add more example configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchTalmadge committed Dec 14, 2019
1 parent 385e3d7 commit 58f4b28
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 7 deletions.
20 changes: 20 additions & 0 deletions example-configs/ads/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 8 additions & 7 deletions example-configs/mcmyadmin/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions example-configs/minecraft/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 58f4b28

Please sign in to comment.