-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.06 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
minecraft-paper:
image: itzg/minecraft-server
container_name: minecraft-paper
ports:
- "25575:25575"
environment:
EULA: "TRUE"
TYPE: "PAPER"
VERSION: "1.21.11"
MEMORY: "4G"
VIEW_DISTANCE: "16"
SERVER_NAME: "Miami"
DIFFICULTY: "hard"
ONLINE_MODE: "FALSE"
SKIP_DOWNLOAD: "TRUE"
SERVER_PORT: "25575"
ENABLE_RCON: "FALSE"
volumes:
- ./minecraft_data:/data
restart: unless-stopped
tty: true
stdin_open: true
websockify:
image: jwnmulder/websockify:latest
container_name: minecraft-websockify
# Listens on 8080 and forwards to the Minecraft container's internal port
command: 8080 minecraft-paper:25575
restart: unless-stopped
depends_on:
- minecraft-paper
nginx:
image: nginx:latest
container_name: minecraft-nginx
ports:
# Standard HTTP port exposed for the Websocket tunnel
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
restart: unless-stopped
depends_on:
- websockify