Replies: 2 comments
-
How do you currently have your container server configured? |
Beta Was this translation helpful? Give feedback.
-
Your approach somewhat depends on your server configuration. The server running in the container will always listen on port An example exporting it to another port can be found in the following version: "3"
services:
minecraft:
container_name: minecraft
image: itzg/minecraft-server:java17-alpine
environment:
EULA: "true"
MEMORY: "1024M"
TYPE: "PAPER"
LEVEL: "somelevelname"
SERVER_NAME: "SomeServerName"
DIFFICULTY: "normal"
MAX_PLAYERS: "10"
USER_AIKAR_FLAGS: "true"
ports:
- "3232:25565"
volumes:
- "/var/lib/minecraft:/data" If you bring your server up using this Compose file, your server will be listening on local port You can disregard the other options if they don't apply to your use case. The relevant part of this file is: services:
minecraft:
ports:
- "3232:25565" |
Beta Was this translation helpful? Give feedback.
-
I moved in with a friend who already has a server so I need to change the port on mine. How do I go about doing that?
Beta Was this translation helpful? Give feedback.
All reactions