2023-01-08 15:05:11 +02:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
minecraft-server:
|
|
|
|
volumes:
|
2023-07-24 18:14:14 +03:00
|
|
|
- serverdata:/data
|
2023-01-08 15:05:11 +02:00
|
|
|
environment:
|
|
|
|
- TYPE=FORGE
|
2023-07-24 18:14:14 +03:00
|
|
|
- MEMORY=4G
|
2023-01-08 15:05:11 +02:00
|
|
|
- VERSION=1.18.2
|
|
|
|
- FORGE_VERSION=40.1.93
|
|
|
|
- EULA=TRUE
|
2023-07-24 18:14:14 +03:00
|
|
|
- MOTD=Hej och välkommen!
|
2023-01-08 15:05:11 +02:00
|
|
|
ports:
|
|
|
|
- '25565:25565'
|
2023-07-24 18:14:14 +03:00
|
|
|
container_name: minecraft
|
2023-01-08 15:05:11 +02:00
|
|
|
image: itzg/minecraft-server
|
2023-07-24 18:14:14 +03:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
serverdata:
|
|
|
|
driver_opts:
|
|
|
|
type: "nfs"
|
|
|
|
o: "addr=192.168.1.100,nfsvers=4,retrans=6"
|
|
|
|
device: ":/mnt/data/storage/minecraft"
|
|
|
|
|