Compare commits
3 Commits
20b3cbdfa0
...
4d24fef442
Author | SHA1 | Date | |
---|---|---|---|
--set | 4d24fef442 | ||
--set | d083a11b21 | ||
--set | 58d8f158f5 |
|
@ -1,18 +1,17 @@
|
||||||
version: '3.3'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
minecraft-server:
|
minecraft-server:
|
||||||
volumes:
|
volumes:
|
||||||
- ./server:/data
|
- /mnt/data/minecraft/server:/data
|
||||||
- ./mods:/data/mods
|
- /mnt/data/minecraft/mods/server:/data/mods
|
||||||
environment:
|
environment:
|
||||||
- TYPE=FABRIC
|
- TYPE=FABRIC
|
||||||
- MEMORY=4G
|
- MEMORY=4G
|
||||||
- VERSION=1.20.4
|
- VERSION=1.20.1
|
||||||
- EULA=TRUE
|
- EULA=TRUE
|
||||||
- MOTD=Hej och välkommen!
|
- MOTD=Hej och välkommen!
|
||||||
ports:
|
ports:
|
||||||
- '25565:25565'
|
- '25565:25565'
|
||||||
|
- '8123:8123' # dynmap
|
||||||
container_name: minecraft
|
container_name: minecraft
|
||||||
image: itzg/minecraft-server
|
image: itzg/minecraft-server
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
unsupported_mods=(
|
||||||
|
"distant"
|
||||||
|
"mod-loading"
|
||||||
|
"sound-physics-remastered"
|
||||||
|
)
|
|
@ -0,0 +1,46 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#echo "Stopping container..."
|
||||||
|
docker-compose down
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Container stopped"
|
||||||
|
echo "Performing upgrade..."
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Function to upgrade ferium and copy mods
|
||||||
|
upgrade_mods() {
|
||||||
|
rm mods/*.jar &&
|
||||||
|
ferium upgrade &&
|
||||||
|
rm mods/server/*.jar &&
|
||||||
|
rm mods/client/*.jar &&
|
||||||
|
cp mods/*.jar mods/server/ &&
|
||||||
|
cp mods/*.jar mods/client/ &&
|
||||||
|
chown -R thord:docker mods/*
|
||||||
|
chmod -R 755 mods/*
|
||||||
|
}
|
||||||
|
|
||||||
|
remove_unsupported_mod() {
|
||||||
|
local mod_name="$1"
|
||||||
|
|
||||||
|
find ./mods/server/ -maxdepth 1 -iname "${mod_name}*.jar" -exec rm {} \; && \
|
||||||
|
echo "Removed non-server mod: $mod_name"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Call the functions
|
||||||
|
upgrade_mods
|
||||||
|
|
||||||
|
# List of unsupported mods to remove
|
||||||
|
source unsupported.sh
|
||||||
|
|
||||||
|
# Loop through unsupported mods and remove them
|
||||||
|
for mod in "${unsupported_mods[@]}"; do
|
||||||
|
remove_unsupported_mod "$mod"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Starting container"
|
||||||
|
|
||||||
|
docker-compose up -d
|
|
@ -0,0 +1,14 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
gpt-ai:
|
||||||
|
image: gpt-ai
|
||||||
|
container_name: gpt-ai
|
||||||
|
ports:
|
||||||
|
- 2101:2101
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Stockholm
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:2101/connect"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
|
@ -0,0 +1,6 @@
|
||||||
|
services:
|
||||||
|
opentts:
|
||||||
|
container_name: opentts
|
||||||
|
ports:
|
||||||
|
- 5500:5500
|
||||||
|
image: synesthesiam/opentts
|
Loading…
Reference in New Issue