How to self-host WriteFreely on a Synology

While most guides focuses on installing WriteFreely on Ubuntu or Docker (docker-compose), I could not find one that simply uses Synology with Docker.
And here’s how you do it:

  1. Install Docker for your Synology.
  2. Search and download algernon/writefreely.
  3. Create a container with that image:
    1. Select bridge network
    2. Enable auto restart
    3. Set your desired port, leaving the container port as 8080
    4. Create a folder on your NAS and attach the folder here pointing to /data
    5. Declare these two variables: WRITEFREELY_ADMIN_USERNAME and WRITEFREELY_ADMIN_PASSWORD
    6. Start container
  4. Buy me a drink on ko-fi :)

Now you can access WriteFreely from your browser pointing to your NAS IP Address and the port that you’ve indicated.