Skip to content

Commit

Permalink
docs: added Better MC example (#2279)
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg authored Jul 8, 2023
1 parent 8fabf17 commit 953e3bf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/atm8/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
21 changes: 21 additions & 0 deletions examples/bettermc/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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: {}
1 change: 1 addition & 0 deletions examples/downloads/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.jar

0 comments on commit 953e3bf

Please sign in to comment.