mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-20 05:25:58 +00:00
Support multiple values for COPY_PLUGINS_SRC, COPY_MODS_SRC, and COPY_CONFIG_SRC (#3377)
This commit is contained in:
16
examples/paper/compose.yml
Normal file
16
examples/paper/compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
mc:
|
||||
image: itzg/minecraft-server
|
||||
tty: true
|
||||
stdin_open: true
|
||||
environment:
|
||||
EULA: "true"
|
||||
TYPE: PAPER
|
||||
MEMORY: 2G
|
||||
ports:
|
||||
- "25565:25565"
|
||||
volumes:
|
||||
- mc-data:/data
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
mc-data: {}
|
||||
5
examples/paper/paper-build-plugins/Dockerfile
Normal file
5
examples/paper/paper-build-plugins/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM itzg/minecraft-server
|
||||
|
||||
ENV TYPE=PAPER
|
||||
|
||||
COPY plugins/*.jar /plugins/
|
||||
9
examples/paper/paper-build-plugins/docker-compose.yml
Normal file
9
examples/paper/paper-build-plugins/docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
mc:
|
||||
build: .
|
||||
environment:
|
||||
EULA: "TRUE"
|
||||
ports:
|
||||
- 25565:25565
|
||||
stdin_open: true
|
||||
tty: true
|
||||
1
examples/paper/paper-build-plugins/plugins/.gitignore
vendored
Normal file
1
examples/paper/paper-build-plugins/plugins/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.jar
|
||||
1
examples/paper/paper-build-plugins/plugins/README.md
Normal file
1
examples/paper/paper-build-plugins/plugins/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Download Bukkit/Spigot plugin jars, such as [WorldEdit](https://dev.bukkit.org/projects/worldedit/files) and place them here. At image build time the `COPY` step will place those jars in `/plugins`. At container startup, the contents of `/plugins` are sync'ed into `/data/plugins` for use with Bukkit/Spigot/Paper server types.
|
||||
@@ -0,0 +1,2 @@
|
||||
proxies:
|
||||
proxy-protocol: true
|
||||
15
examples/paper/paper-proxy-protocol/docker-compose.yml
Normal file
15
examples/paper/paper-proxy-protocol/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
mc:
|
||||
image: itzg/minecraft-server
|
||||
environment:
|
||||
EULA: true
|
||||
TYPE: PAPER
|
||||
ports:
|
||||
# Use host port 25566 assuming mc-router or similar is bound to 25565
|
||||
- "25566:25565"
|
||||
volumes:
|
||||
- mc-data:/data
|
||||
- ./config:/config:ro
|
||||
|
||||
volumes:
|
||||
mc-data: {}
|
||||
Reference in New Issue
Block a user