add minecraft

This commit is contained in:
James Turland
2023-11-23 15:50:51 +00:00
parent 98fc682a86
commit 898b52b49d
4 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
version: '3.3'
services:
minecraft-server:
container_name: minecraft-server
image: itzg/minecraft-server
ports:
- 25565:25565
environment:
- TYPE=FORGE
- EULA=TRUE
volumes:
- /home/ubuntu/docker/minecraft:/data
stdin_open: true
tty: true
restart: unless-stopped
networks:
macvlan4: # change name to whatever you like
ipv4_address: 192.168.4.20 # change to your IP in your vLAN subnet
networks:
macvlan4:
external: true