docker-compose/minecraft/docker-compose.yml

30 lines
673 B
YAML

version: '3.3'
volumes:
mc-data:
driver_opts:
type: "nfs"
o: "addr=192.168.1.245,nolock,soft,rw"
device: ":/mnt/data/storage/minecraft"
services:
minecraft-server:
volumes:
# - ./data:/data
- type: volume
source: mc-data
target: /data
volume:
nocopy: true
environment:
- TYPE=FORGE
- MEMORY=2G
- VERSION=1.18.2
- FORGE_VERSION=40.1.93
- EULA=TRUE
ports:
- '25565:25565'
container_name: mc-forge
image: itzg/minecraft-server