How to Install AdventureLog on Your Synology NAS

How to Install AdventureLog on Your Synology NAS

AdventureLog is a simple way to log your travels and share them with the world. You can add photos, notes, and more to your logs. Keep track of the countries you’ve visited, the regions you’ve explored, and the places you’ve been. You can also see your travel stats and milestones. In this step by step guide I will show you how to install AdventureLog on your Synology NAS using Docker & Portainer.

💡Note: This guide works perfectly with the latest AdventureLog v0.6.0 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

Go to Control Panel / Network / Connectivity tab/ Check Enable HTTP/2 then click Apply. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 1

  • STEP 4

Go to Control Panel / Security / Advanced tab/ Check Enable HTTP Compression then click Apply. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 2

  • STEP 5

Make sure you have a synology.me Wildcard Certificate. Follow my guide to get a Wildcard Certificate. If you already have a synology.me Wildcard certificate, skip this STEP.

  • STEP 6

Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 3

  • STEP 7

Now click the “Create” button. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 4

  • STEP 8

After you click the Create button, the window below will open. Follow the instructions in the image below.

On the General area, set the Reverse Proxy Name description: type in AdventureLog. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: adventurelog.yourname.synology.me
Port: 443

Check Enable HSTS

Destination:
Protocol: HTTP
Hostname: localhost
Port: 9866

AdventureLog Synology NAS Set up 5

  • STEP 9

On the Reverse Proxy Rules click the Custom Header tab. Click Create and then, from the drop-down menu, click WebSocket. After you click on WebSocket, two Header Names and two Values will be automatically added. Click Save. Follow the instructions in the image below.

Synology Proxy WebSocket

  • STEP 10

Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 6

  • STEP 11

Now click the “Create” button. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 7

  • STEP 12

After you click the Create button, the window below will open. Follow the instructions in the image below.

On the General area, set the Reverse Proxy Name description: type in AdvenutreLognginx. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: adventurelognginx.yourname.synology.me
Port: 443

Check Enable HSTS

Destination:
Protocol: HTTP
Hostname: localhost
Port: 81

AdventureLog Synology NAS Set up 8

  • STEP 13

On the Reverse Proxy Rules click the Custom Header tab. Click Create and then, from the drop-down menu, click WebSocket. After you click on WebSocket, two Header Names and two Values will be automatically added. Click Save. Follow the instructions in the image below.

Synology Proxy WebSocket

  • STEP 14

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it adventurelog. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

AdventureLog Synology NAS Set up 9

  • STEP 15

Now create three new folders inside the adventurelog folder that you created at STEP 14 and name them db, media, proxy. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

AdventureLog Synology NAS Set up 10

  • STEP 16

Download (click on the blue link below) then upload the nginx.conf file below in the proxy folder that you have previously created at STEP 15. Follow the instructions in the image below. 🔒Note: Support my work to unlock the password. You can use this password to download any file on mariushosting forever!

👉🏻nginx.conf

AdventureLog Synology NAS Set up 11

  • STEP 17

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

1 Synology Portainer Add Stack

  • STEP 18

In the Name field type in adventurelog. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

version: "3.9"
services:
  db:
    image: postgis/postgis:16-master
    container_name: AdventureLog-DB
    hostname: adventurelog-db
    mem_limit: 1g
    cpu_shares: 1024
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: ["CMD", "pg_isready", "-q", "-d", "adventurelog", "-U", "adventureloguser"]
      timeout: 45s
      interval: 10s
      retries: 10
    volumes:
      - /volume1/docker/adventurelog/db:/var/lib/postgresql/data:rw
    environment:
      POSTGRES_DB: adventurelog
      POSTGRES_USER: adventureloguser
      POSTGRES_PASSWORD: adventurelogpass
    restart: on-failure:5

  web:
    image: ghcr.io/seanmorley15/adventurelog-frontend:latest
    container_name: AdventureLog-FRONTEND
    environment:
      - PUBLIC_SERVER_URL=http://server:8000
      - ORIGIN=https://adventurelog.yourname.synology.me
      - BODY_SIZE_LIMIT=Infinity
    ports:
      - 9866:3000
    depends_on:
      - server
      
  server:
    image: ghcr.io/seanmorley15/adventurelog-backend:latest
    container_name: AdventureLog-SERVER
    healthcheck:
      test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 90s
    environment:
      - PGHOST=db
      - PGDATABASE=adventurelog
      - PGUSER=adventureloguser
      - PGPASSWORD=adventurelogpass
      - SECRET_KEY=MariushostingMariushostingMari13
      - DJANGO_ADMIN_USERNAME=marius
      - DJANGO_ADMIN_PASSWORD=mariushosting
      - DJANGO_ADMIN_EMAIL=yourown@email
      - DISABLE_REGISTRATION=false
      - PUBLIC_URL=https://adventurelognginx.yourname.synology.me
      - CSRF_TRUSTED_ORIGINS=https://adventurelog.yourname.synology.me
      - DEBUG=False
      - FRONTEND_URL=https://adventurelog.yourname.synology.me
    ports:
      - 8669:8000
    depends_on:
      - db
    volumes:
      - /volume1/docker/adventurelog/media:/code/media:rw

  nginx:
    image: nginx:latest
    container_name: AdventureLog-NGINX
    healthcheck:
      test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/80' || exit 1
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 90s
    ports:
      - 81:80
    volumes:
      - /volume1/docker/adventurelog/media:/app/media:rw
      - /volume1/docker/adventurelog/proxy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
    depends_on:
      - server

Note: Before you paste the code above in the Web editor area below, change the value for ORIGIN and type in your own synology.me DDNS with https:// at the beginning that you have previously created at STEP 8.
Note: Before you paste the code above in the Web editor area below, change the value for SECRET_KEY and add your own SECRET KEY. MariushostingMariushostingMari13 is an example for an SECRET KEY. You should invent your own Value. Add 32 random characters, both letters and numbers. Do NOT use special characters.
Note: Before you paste the code above in the Web editor area below, change the value for DJANGO_ADMIN_USERNAME and type in your own username. marius is an example for a username. Do NOT use special characters.
Note: Before you paste the code above in the Web editor area below, change the value for DJANGO_ADMIN_PASSWORD and type in your own password. mariushosting is an example for a password. Do NOT use special characters.
Note: Before you paste the code above in the Web editor area below, change the value for DJANGO_ADMIN_EMAIL and type in your own email address.
Note: Before you paste the code above in the Web editor area below, change the value for PUBLIC_URL and type in your own synology.me DDNS with https:// at the beginning that you have previously created at STEP 12.
Note: Before you paste the code above in the Web editor area below, change the value for CSRF_TRUSTED_ORIGINS and type in your own synology.me DDNS with https:// at the beginning that you have previously created at STEP 8.
Note: Before you paste the code above in the Web editor area below, change the value for FRONTEND_URL and type in your own synology.me DDNS with https:// at the beginning that you have previously created at STEP 8.

AdventureLog Synology NAS Set up 12 new 2025

  • STEP 19

Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

AdventureLog Synology NAS Set up 13

  • STEP 20

If everything goes right, you will see the following message at the top right of your screen: “Success Stack successfully deployed“.

AdventureLog Synology NAS Set up 14

  • STEP 21

On the left sidebar in Portainer, click Containers. Identify your AdventureLog-SERVER instance, then click on the little terminal icon. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 15 new 2025

  • STEP 22

After you click on the little terminal icon at STEP 21, a new page will open. Click Connect. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 16

  • STEP 23

After you click Connect at STEP 22, a Console will open. Copy Paste the code below, then hit Enter on your keyboard. Follow the instructions in the image below.

python manage.py worldtravel-seed --force

AdventureLog Synology NAS Set up 17

  • STEP 24

The World Travel Data will be downloaded. If everything goes right, you will see the following message at the end of the console: “Successfully imported world travel data“.

AdventureLog Synology NAS Set up 18 new 2025

  • STEP 25

Go back to STEP 1 or you will deal with karma 🙂.

  • STEP 26

Now open your browser and type in your HTTPS/SSL certificate like this https://adventurelog.yourname.synology.me that you have previously created at STEP 8. In my case it’s https://adventurelog.mariushosting.synology.me If everything goes right, you will see the AdventureLog homepage. At the top right of the page, click the 3 horizontal dots, then select your favorite theme. Click Sign Up to create an account. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 19

  • STEP 27

Type in your own details, then click Signup. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 20

  • STEP 28

Welcome to the AdventureLog homepage! Go straight to the next STEP.

AdventureLog Synology NAS Set up 21

  • STEP 29

At the top right of the page, click on the user icon then My Adventures. Click the + button at the bottom right of the page. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 22

  • STEP 30

Click Visited Adventure if you want to add memorial tracks of your previous adventure or Planned Adventure for an upcoming Vacation/Adventure. I selected Visited Adventure. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 23

  • STEP 31

Add the details of your Adventure with image, if possible, then click Create. Follow the instructions in the image below.

AdventureLog Synology NAS Set up 24

  • STEP 32

Your first Vacation/Adventure at a glance!

AdventureLog Synology NAS Set up 25

  • STEP 33

Add multiple Adventures!

AdventureLog Synology NAS Set up 26

  • STEP 34

Your Adventures at a glance!

AdventureLog Synology NAS Set up 27

  • STEP 35

At the top of the page you can also click the Map tab to check your Pinned Adventures in a Worldwide map.

AdventureLog Synology NAS Set up 28

  • STEP 36

If you want to disable user registration in AdventureLog after registering the first user, just change the following line in the compose at STEP 18:

DISABLE_REGISTRATION=false

with the following one:

DISABLE_REGISTRATION=true

Click update the stack to update the settings. From this point on, any user that will try to register a new account in AdventureLog will be rejected.

Enjoy AdventureLog!

🆘TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issues article.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the AdventureLog container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Sunday / August 25th, 2024 at 1:02 PM