Skip to main content
  1. Posts/

Running via Docker

·247 words·2 mins

Some days ago I retired an old server of mine. Besides others, it was also running my service, which I had to migrate to another server.

So far the service ran in a FreeBSD jail and an nginx on my webserver was proxying the requests internally. As I decided some time ago, that this setup is rather hard to maintain, I needed to come up with a better solution on the new server.

Docker to the rescue #

My decision fell on Docker. As I am already running Docker on the server anyways, why not run as a Docker service as well and then proxy the requests via nginx from another webserver.

So I created a Dockerfile and uploaded it as a project on DockerHub:

So it is now even easier to run your own instance of Just the already ready docker image, set up a local directory for the notes and for the configuration files and you are ready to go. No Perl installation required. The Dockerfile is also on github, so feel free to adjust anything to your needs and build your own Docker image.

docker-compose example #

Here is also an example for a matching docker-compose.yml file:

version: "3"
    image: wneessen/
    container_name: fastcrypt
    restart: always
      - /var/db/fastcrypt/files:/opt/fastcrypt/files
      - /var/db/fastcrypt/conf:/opt/fastcrypt/conf:ro
      - /etc/localtime:/etc/localtime:ro
      - fcrypt_net
      - 8080:8080
      driver: none

    external: true

(The networking stuff is optional and only because of my personal preferences)