Docker container - PascalBod/municserver GitHub Wiki

Docker container

One good way to provision the server is to run it in a Docker container, on a Linux host with a public IP address.

To create a Docker container running the application jar:

  • install Docker
  • create a folder named municserver (for instance)
  • in this folder, create a Dockerfile containing following lines:
FROM openjdk:8
COPY . /usr/bin/municserver
WORKDIR /usr/bin/municserver
CMD ["java", "-jar", "municserver.jar"]
  • copy the application jar (municserver.jar) into the folder
  • build the Docker image:
docker build -t municserver .
  • create and run a container based on this image:
docker run -d -p 55040:55040 --name="municserver" municserver

Now, you can configure Munic.Box webhook to http://<hostFQDN>:55040

⚠️ **GitHub.com Fallback** ⚠️