-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
702 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
# | ||
# Backup Job Entrypoint | ||
# | ||
# Used by the docker container | ||
|
||
|
||
# Configure User for SSH | ||
uid=$(stat -c %u /backups) | ||
deluser bedrockifier | ||
[ -x /usr/sbin/useradd ] && useradd -m -u ${uid} bedrockifier -s /bin/sh || adduser --disabled-login --uid ${uid} bedrockifier --shell /bin/sh; | ||
export HOME=/backups | ||
|
||
# Execute | ||
/usr/local/bin/entrypoint-demoter --match /backups --debug --stdin-on-term stop /opt/bedrock/bedrockifierd |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,3 @@ docker buildx imagetools create \ | |
-t $tag \ | ||
$tag-amd64 \ | ||
$tag-arm64 \ | ||
|
||
echo Pushing created tag | ||
docker push $tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: '3.7' | ||
|
||
services: | ||
backup: | ||
image: kaiede/minecraft-bedrock-backup | ||
restart: always | ||
# Make sure the minecraft images start before the backup | ||
depends_on: | ||
- "public" | ||
- "private" | ||
environment: | ||
# Useful for making sure your logs have a proper timestamp | ||
TZ: "America/Los_Angeles" | ||
volumes: | ||
# Docker needs to be made accessible to the backup container in this case | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# Map your backups folder info /backups | ||
- /opt/minecraft/backups:/backups | ||
# Map the data folders for the server | ||
- /opt/bedrock/public:/bedrock_public | ||
|
||
public: | ||
image: itzg/minecraft-bedrock-server | ||
restart: always | ||
container_name: bedrock_public | ||
# Expose the mc-server-runner's SSH port to just the backup container | ||
expose: | ||
- 2222 | ||
# Make the minecraft server port public | ||
ports: | ||
- 19132:19132/udp | ||
environment: | ||
# Server settings | ||
EULA: "TRUE" | ||
volumes: | ||
- /opt/bedrock/public:/data | ||
stdin_open: true | ||
tty: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
containers: | ||
bedrock: | ||
# Backup the world "PrivateSMP" on the "bedrock_private" docker container | ||
- name: bedrock_private | ||
# Tells the backup service that this container is accessible | ||
# using the mc-server-runner SSH functionality. | ||
# passwordFile should point to the .remote-console.yaml file in the container | ||
ssh: private:2222 | ||
passwordFile: /bedrock_private/.remote-console.yaml | ||
worlds: | ||
- /bedrock_private/worlds/PrivateSMP | ||
# Backup the world "PublicSMP" on the "bedrock_public" docker container | ||
- name: bedrock_public | ||
# Tells the backup service that this container is accessible | ||
# using the mc-server-runner SSH functionality. | ||
# passwordFile should point to the .remote-console.yaml file in the container | ||
ssh: public:2222 | ||
passwordFile: /bedrock_public/.remote-console.yaml | ||
worlds: | ||
- /bedrock_public/worlds/PublicSMP | ||
schedule: | ||
# This will perform a backup every 3 hours. | ||
# At most this will generate 8 backups a day. | ||
interval: 3h | ||
trim: | ||
# Keep all backups for the last two days (today and yesterday) | ||
# Keep at least one backup for the last 14 days | ||
# Keep at least two backups per world | ||
trimDays: 2 | ||
keepDays: 14 | ||
minKeep: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
containers: | ||
bedrock: | ||
# Backup the world "PublicSMP" on the "bedrock_public" docker container | ||
- name: bedrock_public | ||
# Tells the backup service that this container is accessible | ||
# using the mc-server-runner SSH functionality. | ||
# passwordFile should point to the .remote-console.yaml file in the container | ||
ssh: public:2222 | ||
passwordFile: /bedrock_public/.remote-console.yaml | ||
worlds: | ||
- /bedrock_public/worlds/PublicSMP | ||
schedule: | ||
# This will perform a backup every 3 hours. | ||
# At most this will generate 8 backups a day. | ||
interval: 3h | ||
trim: | ||
# Keep all backups for the last two days (today and yesterday) | ||
# Keep at least one backup for the last 14 days | ||
# Keep at least two backups per world | ||
trimDays: 2 | ||
keepDays: 14 | ||
minKeep: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: '3.7' | ||
|
||
services: | ||
backup: | ||
image: kaiede/minecraft-bedrock-backup | ||
restart: always | ||
# Make sure the minecraft images start before the backup | ||
depends_on: | ||
- "public" | ||
- "private" | ||
environment: | ||
# Useful for making sure your logs have a proper timestamp | ||
TZ: "America/Los_Angeles" | ||
volumes: | ||
# Map your backups folder info /backups | ||
- /opt/minecraft/backups:/backups | ||
# Map the data folders for both servers | ||
- /opt/bedrock/private:/bedrock_private | ||
- /opt/bedrock/public:/bedrock_public | ||
|
||
public: | ||
image: itzg/minecraft-bedrock-server | ||
restart: always | ||
container_name: bedrock_public | ||
# Expose the mc-server-runner's SSH port to just the backup container | ||
expose: | ||
- 2222 | ||
# Make the minecraft server port public | ||
ports: | ||
- 19132:19132/udp | ||
environment: | ||
# Enable SSH | ||
SSH_ENABLE: "TRUE" | ||
# Server settings | ||
EULA: "TRUE" | ||
volumes: | ||
- /opt/bedrock/public:/data | ||
stdin_open: true | ||
tty: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
containers: | ||
java: | ||
- name: minecraft_public | ||
# Tells the backup service that this container is accessible | ||
# using minecraft's RCON server. | ||
# passwordFile should point to the .rcon-cli.yaml file in the container | ||
rcon: public:25575 | ||
passwordFile: /public/.rcon-cli.yaml | ||
# Backup the "PublicSMP" world in the "minecraft_public" container | ||
# Backup the logs and mods folder into an "extras.zip" | ||
worlds: | ||
- /public/PublicSMP | ||
extras: | ||
- /public/logs | ||
- /public/mods | ||
schedule: | ||
# This will trigger a backup every time the last player logs out. | ||
# At most, one backup every 4 hours will be made when the player logs out. | ||
# There is also one daily backup made at 1am every day. | ||
# This will produce a maximum of 7 backups a day, but will always produce | ||
# one daily backup. | ||
daily: 01:00 | ||
onLastLogout: true | ||
minInterval: 4h | ||
trim: | ||
# Keep all backups for the last two days (today and yesterday) | ||
# Keep at least one backup for the last 14 days | ||
# Keep at least two backups per world | ||
trimDays: 2 | ||
keepDays: 14 | ||
minKeep: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: '3.7' | ||
|
||
services: | ||
backup: | ||
image: kaiede/minecraft-bedrock-backup | ||
restart: always | ||
# Make sure the minecraft image starts before the backup | ||
depends_on: | ||
- "public" | ||
environment: | ||
# Useful for making sure your logs have a proper timestamp | ||
TZ: "America/Los_Angeles" | ||
volumes: | ||
# Map your backups folder info /backups | ||
- /opt/minecraft/backups:/backups | ||
# Map your server's data folder | ||
- /opt/minecraft/public:/public | ||
|
||
public: | ||
image: itzg/minecraft-server | ||
container_name: minecraft_public | ||
# Expose the minecraft server's RCON port just to the backup container | ||
expose: | ||
- 25575 | ||
# Make the minecraft server port public | ||
ports: | ||
- 25565:25565 | ||
environment: | ||
# Enable RCON | ||
ENABLE_RCON: "TRUE" | ||
# Server Settings | ||
TYPE: "FABRIC" | ||
EULA: "TRUE" | ||
MAX_PLAYERS: 6 | ||
VIEW_DISTANCE: 20 | ||
LEVEL: "PublicSMP" | ||
MOTD: "Public SMP Server" | ||
MEMORY: "2G" | ||
volumes: | ||
- /opt/minecraft/public:/data | ||
restart: unless-stopped |
Oops, something went wrong.