-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (59 loc) · 1.58 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
63 lines (59 loc) · 1.58 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
mc:
image: itzg/minecraft-server${MC_CONTAINER}
tty: true
stdin_open: true
restart: unless-stopped
env_file: ./.env
ports:
- "25565:25565"
networks:
cont_net:
ipv4_address: "10.103.0.10"
environment:
# Minecraft server config
EULA: "TRUE"
TYPE: "${MC_TYPE?error}"
VERSION: "${MC_VERSION?error}"
MIN_MEMORY: "${MC_MIN_MEMORY?error}"
MAX_MEMORY: "${MC_MAX_MEMORY?error}"
SERVER_NAME: "${MC_SERVER_NAME:-Minecraft server}"
MOTD: "${MC_MOTD:-A Minecraft server}"
WHITELIST: |-
${MC_WHITELIST}
ENFORCE_WHITELIST: "${MC_ENFORCE_WHITELIST-TRUE}"
OPS: "${MC_OPS:-mitryp}"
SPAWN_PROTECTION: "${MC_SPAWN_PROTECTION-FALSE}"
ONLINE_MODE: "${MC_ONLINE_MODE-TRUE}"
# CurseForge mod pack config
CF_API_KEY: "${CF_API_KEY}"
CF_PAGE_URL: "${CF_PAGE_URL}"
CF_EXCLUDE_MODS: "${CF_EXCLUDE_MODS}"
# RCON setup
RCON_CMDS_STARTUP: |-
${RCON_CMDS_STARTUP}
RCON_CMDS_FIRST_CONNECT: |-
${RCON_CMDS_FIRST_CONNECT}
RCON_CMDS_LAST_DISCONNECT: |-
${RCON_CMDS_LAST_DISCONNECT}
volumes:
- ./data:/data
playit:
image: ghcr.io/playit-cloud/playit-agent${PLAYIT_CONTAINER:-:0.15}
restart: unless-stopped
env_file: ./.env
environment:
SECRET_KEY: "${PLAYIT_SECRET_KEY}"
networks:
cont_net:
ipv4_address: "10.103.0.20"
depends_on:
- mc
profiles:
- public
networks:
cont_net:
driver: bridge
ipam:
config:
- subnet: 10.103.0.0/16