Fork me on GitHub

Herr Knedel/Great things with containers: vanDAM on Synology - Diskstation

Created Sun, 15 May 2022 00:00:00 +0000 Modified Sun, 15 May 2022 06:30:59 +0000 Difficulty level: It may take a little longer

218 Words

VanDAM is a digital asset manager (DAM) designed specifically for 3D print files. It allows you to conveniently view STL and OBJ files.

Step 1: Prepare Synology

The first thing to do is to enable SSH login on Diskstation. To do this, go to the “Control Panel” > “Terminal

After that you can log in via “SSH”, the specified port and the administrator password (Windows users take Putty or WinSCP). I log in via Terminal, winSCP or Putty and leave this console open for later.

Step 2: Create vanDAM folder

I create a new directory named “van-dam” in the Docker directory.

With the command “cd” I search the VanDam directory and create two subfolders:
x
+
Terminal

$ cd /volume1/docker/van-dam/
$ mkdir db_data
$ mkdir libraries

Then I create a “van-dam.yml” file in the vanDAM directory there with this content:

version: "3"

services:
  app:
    image: ghcr.io/floppy/van_dam:latest
    ports:
      - 3214:3214
    volumes:
      - ./libraries:/libraries
    environment:
      DATABASE_URL: postgresql://van_dam:password@db/van_dam?pool=5
      SECRET_KEY_BASE: a_nice_long_random_string
      GRID_SIZE: 260
    depends_on:
      - db
      - redis

  db:
    image: postgres:13
    volumes:
      - db_data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: van_dam
      POSTGRES_PASSWORD: password
    restart: on-failure

  redis:
    image: redis:6
    restart: on-failure

volumes:
  db_data:


Now start the vanDAM server with this Compose call:

x
+
Terminal

$ sudo docker-compose -f van-dam.yml up

Step 3: Configuration

Now I can call the vanDAM server and configure the directories.