From 953e3bf8fcd23212456dc7b548225bf843259a97 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 8 Jul 2023 13:35:52 -0500 Subject: [PATCH] docs: added Better MC example (#2279) --- examples/atm8/docker-compose.yml | 5 +++-- examples/bettermc/docker-compose.yml | 21 +++++++++++++++++++++ examples/downloads/.gitignore | 1 + 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 examples/bettermc/docker-compose.yml create mode 100644 examples/downloads/.gitignore diff --git a/examples/atm8/docker-compose.yml b/examples/atm8/docker-compose.yml index 9d77b81e..af147910 100644 --- a/examples/atm8/docker-compose.yml +++ b/examples/atm8/docker-compose.yml @@ -15,7 +15,7 @@ services: MEMORY: 4G volumes: - mc-data:/data - - ./downloads:/downloads + - ../downloads:/downloads # Since Docker's default volume driver creates volumes owned by root, this # init container will change ownership to match final UID of mc service, above init-filebrowser: @@ -29,7 +29,8 @@ services: filebrowser: image: filebrowser/filebrowser depends_on: - - init-filebrowser + init-filebrowser: + condition: service_completed_successfully user: "1000:1000" environment: FB_DATABASE: /database/filebrowser.db diff --git a/examples/bettermc/docker-compose.yml b/examples/bettermc/docker-compose.yml new file mode 100644 index 00000000..d2499fac --- /dev/null +++ b/examples/bettermc/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3.8" + +services: + mc: + image: itzg/minecraft-server + environment: + EULA: true + MOD_PLATFORM: AUTO_CURSEFORGE + # Set CF_API_KEY=... in a .env file next to this compose file and don't source control that file + CF_API_KEY: ${CF_API_KEY} + CF_SLUG: better-mc-fabric-bmc1 + CF_FILENAME_MATCHER: v18.5 + MEMORY: 4G + volumes: + - mc:/data + - ../downloads:/downloads + ports: + - "25565:25565" + +volumes: + mc: {} \ No newline at end of file diff --git a/examples/downloads/.gitignore b/examples/downloads/.gitignore new file mode 100644 index 00000000..f23b9489 --- /dev/null +++ b/examples/downloads/.gitignore @@ -0,0 +1 @@ +*.jar \ No newline at end of file