Skip to content
Snippets Groups Projects

Played around

Merged Jakob Moser requested to merge played-around into master
Compare and Show latest version
1 file
+ 7
3
Compare changes
  • Side-by-side
  • Inline
+ 7
3
@@ -32,7 +32,10 @@ RUN chown -R ${papermc_user} /papermc
RUN chown -R ${papermc_user} /backup
# Get package lists, install needed packages, then remove the package lists again (to save space)
# "webp" is needed to generate images with better compression for the dynamic map
# "webp" is needed to generate images with better compression for the dynamic map (optional, needs further configuration in dynmap-plugin´s config file)
# "cron" is for making it possible to restart the server every day, week or soemthing similar (its optional)
# "curl" is required for getting the server initialised
# "screen" is required for getting the server running at all
RUN apt-get update && apt-get install -y \
cron \
curl \
@@ -44,15 +47,16 @@ RUN apt-get update && apt-get install -y \
# Execute all following commands as the papermc user
USER $papermc_user
# Start script
# Start script and also entrypoint for the container
CMD ["sh", "/papermc.sh"]
#Alle 10s testen ob exit code = 0
HEALTHCHECK --interval=10s --timeout=10s --start-period=30s \
CMD ["sh", "/health.sh"]
# Container setup
# Container setup, specifies needed ports. May be adjusted or overwritten if plugins need other ports
EXPOSE 25565/tcp
EXPOSE 25565/udp
#Specifies the datastructure in the container
VOLUME /papermc
VOLUME /backup
Loading