Compare commits

...

2 Commits

Author SHA1 Message Date
Jef Roosens d11396d388
paper: double 30min chain length 2023-07-04 16:40:58 +02:00
Jef Roosens 2a3fc0ca26
feat: update paper to use alex 0.3.0 2023-07-04 16:30:19 +02:00
2 changed files with 6 additions and 4 deletions

View File

@ -26,8 +26,9 @@ services:
environment:
- 'ALEX_XMS=4096'
- 'ALEX_XMX=8192'
- 'ALEX_MAX_BACKUPS=28'
- 'ALEX_FREQUENCY=360'
# Backups every 30 minutes stored for a day for quick rollback in case of crash
# Daily full backups for 7 days for broader rollback if needed
- 'ALEX_LAYERS=30min,30,1,48;daily,1440,7,1'
ports:
- '25565:25565'
volumes:

View File

@ -24,7 +24,7 @@ ARG MC_VERSION
ARG PAPERMC_VERSION
# Install alex binary
ADD "https://git.rustybever.be/api/packages/Chewing_Bever/generic/alex/0.2.2/alex-linux-amd64" /bin/alex
ADD "https://git.rustybever.be/api/packages/Chewing_Bever/generic/alex/0.3.0/alex-linux-amd64" /bin/alex
RUN chmod +x /bin/alex && \
addgroup -Sg 1000 paper && \
@ -47,6 +47,7 @@ ENV ALEX_JAR=/app/server.jar \
ALEX_CONFIG_DIR=/app/config \
ALEX_WORLD_DIR=/app/worlds \
ALEX_BACKUP_DIR=/app/backups \
ALEX_SERVER=paper \
ALEX_SERVER_VERSION="${MC_VERSION}-${PAPERMC_VERSION}"
# Document exposed ports
@ -58,7 +59,7 @@ USER paper:paper
COPY --from=dumb-init-builder /app/dumb-init /dumb-init
ENTRYPOINT ["/dumb-init", "--"]
CMD /bin/alex paper
CMD /bin/alex run
# HEALTHCHECK --interval=30s --timeout=5s --start-period=1m --retries=5 \
# CMD mcstatus localhost:25565 ping