Running fastcry.pt via Docker
Table of Contents
Some days ago I retired an old server of mine. Besides others, it was also running my fastcry.pt service, which I had to migrate to another server.
So far the fastcry.pt 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 fastcry.pt 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: https://hub.docker.com/repository/docker/wneessen/fastcry.pt
So it is now even easier to run your own instance of fastcry.pt. 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"
services:
fastcrypt:
image: wneessen/fastcry.pt:latest
container_name: fastcrypt
restart: always
volumes:
- /var/db/fastcrypt/files:/opt/fastcrypt/files
- /var/db/fastcrypt/conf:/opt/fastcrypt/conf:ro
- /etc/localtime:/etc/localtime:ro
networks:
- fcrypt_net
ports:
- 8080:8080
logging:
driver: none
networks:
fcrypt_net:
external: true
(The networking stuff is optional and only because of my personal preferences)