-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
26 lines (26 loc) · 1.01 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: "3.9"
services:
minecraft:
container_name: minecraft
image: opisek/mc-paper-docker:latest
volumes:
- ~/minecraft:/app/minecraft # change /srv/minecraft to the directory you want to store minecraft files in
ports:
- 25565:25565
environment:
- EULA=false # change this to true if you agree to minecraft eula https://www.minecraft.net/en-us/eula
- VERSION=latest # minecraft version or "latest"
- CHANNEL=default # change this to experimental for experimental paper builds
- GRACE=180 # amount of time in seconds of nobody being online before stopping the server
- XMS=8G # minimum amount of ram to allocate to the server
- XMX=8G # maximum amount of ram to allocate to the server
- UID=9999 # minecraft files user id
- GID=9999 # minecraft files group id
restart: unless-stopped
stdin_open: true
tty: true
build:
context: .
dockerfile: Dockerfile
volumes:
minecraft-data: