-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
145 lines (138 loc) · 5.15 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
145 lines (138 loc) · 5.15 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# This is not intended to be a production-ready deployment; It is only intended to demonstrate
# how Catalyst may be deployed in a container environment.
# Carefully read and understand the entire configuration before using any part of it.
# By using this file, you are indicating your acceptance of the Minecraft EULA (https://www.minecraft.net/en-us/eula).
name: catalyst
services:
db:
image: postgres:15.10
ports:
- "5432:5432"
environment:
POSTGRES_DB: catalyst_docker_compose
POSTGRES_USER: catalyst_docker_compose
POSTGRES_PASSWORD: catalyst_docker_compose
volumes:
- ./postgresql:/var/lib/postgresql/data
pg-admin:
image: dpage/pgadmin4:8.14
ports:
- "8080:80"
environment:
PGADMIN_DEFAULT_EMAIL: catalyst@example.com
PGADMIN_DEFAULT_PASSWORD: catalyst
# Sample mariadb container
# Don't forget to update references in this file and the ../config/velocity-patch-set.json LP storage method
# Comment out postgres images above (db and pg-admin)
# db:
# image: mariadb:11.2
# ports:
# - "3306:3306"
# environment:
# MYSQL_DATABASE: catalyst_docker_compose
# MYSQL_USER: catalyst_docker_compose
# MYSQL_PASSWORD: catalyst_docker_compose
# MARIADB_RANDOM_ROOT_PASSWORD: true
# volumes:
# - ./mariadb:/var/lib/mysql
lp:
image: ghcr.io/luckperms/luckperms:v5.5.45
environment:
# LUCKPERMS_STORAGE_METHOD: mariadb
LUCKPERMS_STORAGE_METHOD: postgresql
LUCKPERMS_DATA_ADDRESS: db
# Use a different database and credentials in production
LUCKPERMS_DATA_DATABASE: catalyst_docker_compose
LUCKPERMS_DATA_USERNAME: catalyst_docker_compose
LUCKPERMS_DATA_PASSWORD: catalyst_docker_compose
proxy:
image: itzg/mc-proxy:2024.6.0
ports:
- "25565:25565"
environment:
TYPE: VELOCITY
VELOCITY_VERSION: 3.4.0-SNAPSHOT
VELOCITY_BUILD_ID: 458
PLUGINS: |
https://download.luckperms.net/1568/velocity/LuckPerms-Velocity-5.4.151.jar
https://cdn.modrinth.com/data/7IbzD4Zm/versions/Jp1p9BHR/SignedVelocity-Proxy-1.3.0.jar
https://cdn.modrinth.com/data/1iWA0pjH/versions/rEHcRyPV/MCKotlinVelocity-1.4.0-k1.9.21.jar
PATCH_DEFINITIONS: /server/velocity-patch-set.json
# CATALYST_DB_TYPE: mariadb # default: postgresql
# CATALYST_DB_URL: jdbc:mariadb://db/catalyst_docker_compose
CATALYST_DB_URL: jdbc:postgresql://db/catalyst_docker_compose
CATALYST_DB_USER: catalyst_docker_compose
CATALYST_DB_PASSWORD: catalyst_docker_compose
CATALYST_CHAT_DISCORD_ENABLED: false
CATALYST_CHAT_DISCORD_BOT_TOKEN: "<token here>"
CATALYST_CHAT_CHANNELS: |
{
"global": {
"id": "global",
"name": "<green>[Global]",
"nameFormat": "<gold>[%backend.name%]</gold>%prefix% %displayname%",
"contentFormat": "%content%",
"messageFormat": "%channel.name% %name%: %content%",
"commandAliases": [
"g",
"global"
],
"alwaysVisible": true,
"availableByDefault": true,
"discordChannelId": "123456789"
},
"staff": {
"id": "staff",
"name": "<aqua>[Staff]",
"nameFormat": "<gold>[%backend.name%]</gold>%prefix% %displayname%",
"contentFormat": "%content%",
"messageFormat": "<aqua>%channel.name% %name%: %content%",
"commandAliases": [
"sc",
"staffchat"
],
"alwaysVisible": true,
"availableByDefault": false,
"discordChannelId": "123456789"
}
}
volumes:
- ../../build/libs:/plugins
- ../config/velocity.toml:/server/velocity.toml
- ../config/forwarding.secret:/server/forwarding.secret
- ../config/velocity-patch-set.json:/server/velocity-patch-set.json
- ./proxy/plugins:/server/plugins
paper-0:
image: itzg/minecraft-server:2024.12.1
expose:
- 25565
environment:
TYPE: PAPER
VERSION: "1.21.4"
PAPER_CHANNEL: "experimental"
PAPER_BUILD: "68"
EULA: true # By using this environment variable, you are indicating your acceptance of the Minecraft EULA
ONLINE_MODE: false
PATCH_DEFINITIONS: /config/paper-patch-set.json
PLUGINS: |
https://cdn.modrinth.com/data/7IbzD4Zm/versions/TKC72r9l/SignedVelocity-Paper-1.3.0.jar
volumes:
- ./paper-0:/data
- ../config/paper-patch-set.json:/config/paper-patch-set.json:ro
paper-1:
image: itzg/minecraft-server:2024.12.1
expose:
- 25565
environment:
TYPE: PAPER
VERSION: "1.21.4"
PAPER_CHANNEL: "experimental"
PAPER_BUILD: "68"
EULA: true # By using this environment variable, you are indicating your acceptance of the Minecraft EULA
ONLINE_MODE: false
PATCH_DEFINITIONS: /config/paper-patch-set.json
PLUGINS: |
https://cdn.modrinth.com/data/7IbzD4Zm/versions/TKC72r9l/SignedVelocity-Paper-1.3.0.jar
volumes:
- ./paper-1:/data
- ../config/paper-patch-set.json:/config/paper-patch-set.json:ro