Recent Discussions
Itzg Docker - correct way to set resource pack from bind-mounted folder
Unanswered
niki_tau posted this in #questions
15 messages
0 views
niki_tauOP
Hi!
Interested in hosting server with a custom map and RP combo using a docker-compose file for itzg's image. This is my config
The world gets copied from the bind mounted
- Am I doing something obviously wrong?
- If it is indeed supposed to only be a URL, how can I manually set a locall resource pack? (eg. override config or something?)
Interested in hosting server with a custom map and RP combo using a docker-compose file for itzg's image. This is my config
services:
mc:
image: itzg/minecraft-server:latest
tty: true
stdin_open: true
ports:
- "25565:25565"
environment:
EULA: "TRUE"
VERSION: "1.21.5" # 1.21.5 needed for map
USE_AIKAR_FLAGS: "true"
USE_MEOWICE_FLAGS: "true"
ENABLE_COMMAND_BLOCK: "true"
# resourcepack and world config
WORLD: /extras/worlds/100WaysToDie.zip
RESOURCE_PACK: /extras/resourcepacks/100WaysToDieRP.zip
# Fabulously optimized - used by clients too
MODPACK_PLATFORM: "AUTO_CURSEFORGE"
CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/fabulously-optimized/files/6972535 # for 1.21.5
CF_API_KEY: "******************************************"
# server config and restrictions
MOTD: "*************************"
OPS: |-
******
ENABLE_WHITELIST: "true"
WHITELIST: |-
*************
volumes:
- "./data:/data"
- "./extras:/extras"The world gets copied from the bind mounted
extras folder, but the resource pack does not. From the documentation, I'm suspecting RESOURCE_PACK is only intended for URLs. - Am I doing something obviously wrong?
- If it is indeed supposed to only be a URL, how can I manually set a locall resource pack? (eg. override config or something?)
like
at all
you need to have a url, as that url is what gets sent to the client for the client to download for themselves
use smth like mc-packs.net
so the server only passes the URL to the client?
Connecticut Warbler
yeah
niki_tauOP
I was under the (apparently wrong) impression that it will provide the client with the pack
got it
I guess then it could be nice to have a minimal docker service alongside that simply hosts a HTTP server hosting the file
@niki_tau I guess then it could be nice to have a minimal docker service alongside that simply hosts a HTTP server hosting the file
Connecticut Warbler
any reason you dont want to use smth simpler? like dropbox, mc-packs.net etc?
@Connecticut Warbler any reason you dont want to use smth simpler? like dropbox, mc-packs.net etc?
niki_tauOP
For this case, I used mc-packs.net as you suggested. I was just thinking about how one would keep everything self contained
I'm kinda learning too about the whole MC devops/hosting landscape
Loading...
Loading...