Installation Windows

Ok.

J’ai vu qu’il y a un autre tuto sur ce forum, ici que tu peux suivre, mais que je trouve compliqué dans sa mise en place.

De mon côté j’ai installé portainer afin de gérer plus facilement stacks docker-compose

Installation => https://www.wundertech.net/how-to-install-portainer-on-a-synology-nas/

Puis ensuite dans portainer tu crées une nouvelle stack en te basant sur cette config :

#################################################
# Docker compose for kresus
#################################################
#
#################################################
# Usage
#
#   docker-compose up -d
#
# then connect to http://localhost:9876.
# The default credentials for authentification are kresus:foobar.
#
#################################################
# Configuration
#
# Password:
#
#   htpasswd -n kresus | awk -F':' '{print $2}'
#
# then replace the value PASSWORD_HASH in the .env file.
#
# Port:
#
# Edit the value PORT in the .env file.
#
# Notification:
#
# An apprise container is provided, so you just have to configure the
# notifications at http://localhost:9876/#/settings/emails.
#
# Emails:
#
# Fill the configuration variables in the .env file.
#
# More:
#
# Look at the environment: section of the kresus container.
#
#################################################

version: '3'

services:
  db:
    image: "postgres"
    restart: always
    environment:
      - POSTGRES_USER=kresus
      - POSTGRES_PASSWORD=kresus
      - POSTGRES_DB=kresus
    volumes:
      - /volume1/docker/kresus/pgdata:/var/lib/postgresql/data

  apprise:
    restart: always
    image: "caronc/apprise"
  kresus:
    image: "bnjbvr/kresus"
    restart: always
    ports:
      - 9876:9876
    environment:
      # See
      # https://framagit.org/kresusapp/kresus/-/blob/main/support/docker/config.example.ini
      # for more configuration options
      - LOCAL_USER_ID=1026
      - KRESUS_DB_TYPE=postgres
      - KRESUS_DB_HOST=db
      - KRESUS_DB_PORT=5432
      - KRESUS_DB_USERNAME=kresus
      - KRESUS_DB_PASSWORD=kresus
      - KRESUS_APPRISE_API_BASE_URL=http://apprise:8000
      - KRESUS_EMAIL_TRANSPORT=
      - KRESUS_EMAIL_FROM=
      - KRESUS_EMAIL_HOST=
      - KRESUS_EMAIL_PORT=
      - KRESUS_EMAIL_USER=
      - KRESUS_EMAIL_PASSWORD=

Il faut que tucrées au préalable un nouveau partage nommé docker sur ton Synology, puis dans ce partage tu crées un répertoire kresus et dans ce répertoire, un sous-répertoire pgdata.

Une fois ceci fait, tu démarres ta stack, et tu as une instance toute propre de Kresus qui tourne sur le port 9876 de ton NAS.

Tu auras peut être besoin d’ouvrir le port du FW de ton NAS selon la politique de sécurité choisie.

Bonne journée !

1 « J'aime »