feat: update paper to use alex 0.3.0
parent
f593bad484
commit
2a3fc0ca26
|
@ -26,8 +26,9 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- 'ALEX_XMS=4096'
|
- 'ALEX_XMS=4096'
|
||||||
- 'ALEX_XMX=8192'
|
- 'ALEX_XMX=8192'
|
||||||
- 'ALEX_MAX_BACKUPS=28'
|
# Backups every 30 minutes stored for a day for quick rollback in case of crash
|
||||||
- 'ALEX_FREQUENCY=360'
|
# Daily full backups for 7 days for broader rollback if needed
|
||||||
|
- 'ALEX_LAYERS=30min,30,1,24;daily,1440,7,1'
|
||||||
ports:
|
ports:
|
||||||
- '25565:25565'
|
- '25565:25565'
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -24,7 +24,7 @@ ARG MC_VERSION
|
||||||
ARG PAPERMC_VERSION
|
ARG PAPERMC_VERSION
|
||||||
|
|
||||||
# Install alex binary
|
# 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 && \
|
RUN chmod +x /bin/alex && \
|
||||||
addgroup -Sg 1000 paper && \
|
addgroup -Sg 1000 paper && \
|
||||||
|
@ -47,6 +47,7 @@ ENV ALEX_JAR=/app/server.jar \
|
||||||
ALEX_CONFIG_DIR=/app/config \
|
ALEX_CONFIG_DIR=/app/config \
|
||||||
ALEX_WORLD_DIR=/app/worlds \
|
ALEX_WORLD_DIR=/app/worlds \
|
||||||
ALEX_BACKUP_DIR=/app/backups \
|
ALEX_BACKUP_DIR=/app/backups \
|
||||||
|
ALEX_SERVER=paper \
|
||||||
ALEX_SERVER_VERSION="${MC_VERSION}-${PAPERMC_VERSION}"
|
ALEX_SERVER_VERSION="${MC_VERSION}-${PAPERMC_VERSION}"
|
||||||
|
|
||||||
# Document exposed ports
|
# Document exposed ports
|
||||||
|
@ -58,7 +59,7 @@ USER paper:paper
|
||||||
COPY --from=dumb-init-builder /app/dumb-init /dumb-init
|
COPY --from=dumb-init-builder /app/dumb-init /dumb-init
|
||||||
|
|
||||||
ENTRYPOINT ["/dumb-init", "--"]
|
ENTRYPOINT ["/dumb-init", "--"]
|
||||||
CMD /bin/alex paper
|
CMD /bin/alex run
|
||||||
|
|
||||||
# HEALTHCHECK --interval=30s --timeout=5s --start-period=1m --retries=5 \
|
# HEALTHCHECK --interval=30s --timeout=5s --start-period=1m --retries=5 \
|
||||||
# CMD mcstatus localhost:25565 ping
|
# CMD mcstatus localhost:25565 ping
|
||||||
|
|
Loading…
Reference in New Issue