Official FortNotes Legacy Docker images.
There are two versions of the image you can choose from.
apache tag contains a full FortNotes installation including the apache web server.
It is designed to be easy to use and gets you running pretty fast.
The second option is an fpm container. It runs a FastCGI process that serves FortNotes API calls. To use this image it must be combined with any webserver that can proxy http requests to the FastCGI port of the container.
Both versions are based on the alpine Docker image.
Using the apache image
The apache image contains a webserver and exposes ports 8000 and 8080. To start the container type:
docker run \ --detach \ --publish 8080:8080 \ --publish 8000:8000 \ --restart always \ --name fortnotes \ fortnotes/legacy:apache
Using the fpm image
To use the fpm image you need an additional web server that can proxy HTTP requests to the fpm port of the container.
For fpm connection this container exposes port
9000. In most cases you might want use another container or your host as proxy.
$ docker run --detach fortnotes/legacy:fpm
The FortNotes data is stored in two unnamed docker volumes
The docker daemon will store that data within the docker directory
That means your data is saved even if the container crashes, is stopped or deleted.
It's possible to use specific data directories instead:
docker run \ --detach \ --publish 8080:8080 \ --publish 8000:8000 \ --volume /writable/sqlite/data/dir:/server/data \ --volume /writable/sessions/data/dir:/server/sessions \ --restart always \ --name fortnotes \ fortnotes/legacy:apache
By default this container uses SQLite for data storage, but it's possible to use an existing MySQL/MariaDB database.
Upgrade to a newer version
To upgrade FortNotes to a new version you need to:
Stop the running container:
docker stop fortnotes
Remove the existing container:
docker rm fortnotes
Pull the new image:
docker pull fortnotes/legacy:apache
Create the container once again with previously specified options.