Install NeonLink Inside Docker Container in Linux

Install NeonLink Inside Docker Container in Linux

NeonLink is a web-based bookmark application for managing links to websites. NeonLink is an open-source project that released under the MIT license.

This tutorial explains how to install NeonLink inside a Docker container in the Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install NeonLink

Before starting, create directories for data and images:

sudo mkdir -p /opt/neonlink/{data,images}

Create an empty bookmarks.sqlite file:

sudo touch /opt/neonlink/data/bookmarks.sqlite
  • Host network

Run the following command to create a container for NeonLink that uses host network:

docker run -d --name=neonlink --restart=always --network=host \
    -v /opt/neonlink/data/bookmarks.sqlite:/app/db/bookmarks.sqlite \
    -v /opt/neonlink/images:/app/public/static/media/background \
    alexscifier/neonlink
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, NeonLink service is listening on port 3333. It can be changed with -p option.

docker network create app-net
docker run -d --name=neonlink --restart=always --network=app-net \
    -p 8080:3333 \
    -v /opt/neonlink/data/bookmarks.sqlite:/app/db/bookmarks.sqlite \
    -v /opt/neonlink/images:/app/public/static/media/background \
    alexscifier/neonlink

Testing NeonLink

Open a web browser and go to http://<IP_ADDRESS>:3333, where <IP_ADDRESS> is the IP address of the system. For the first time, you will be asked to create the administrator account. After that, you will be redirected to the login page.

NeonLink Inside Docker Container in Linux

Uninstall NeonLink

To completely remove NeonLink, remove its container:

docker rm --force neonlink

Remove NeonLink image:

docker rmi alexscifier/neonlink

You can also remove NeonLink data:

sudo rm -rf /opt/neonlink

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.