From 43241a35a290b332a9d9e14225c7f7307dc03986 Mon Sep 17 00:00:00 2001 From: "cori.schlegel" Date: Sun, 14 Jan 2024 05:09:32 +0000 Subject: [PATCH] add db password --- apps/atuin/config.json | 9 ++++++++- apps/atuin/docker-compose.yml | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/atuin/config.json b/apps/atuin/config.json index a344fe09..e5456d3f 100755 --- a/apps/atuin/config.json +++ b/apps/atuin/config.json @@ -15,6 +15,13 @@ "short_desc": "Magical Shell History", "author": "atuinsh", "source": "https://github.com/atuinsh/atuin", - "form_fields": [], + "form_fields": [ + { + "type": "password", + "label": "Atuin DB Password", + "required": true, + "env_variable": "ATUIN_DB_PASSWORD" + } + ], "supported_architectures": ["amd64"] } diff --git a/apps/atuin/docker-compose.yml b/apps/atuin/docker-compose.yml index fd2d5aa8..21253e29 100755 --- a/apps/atuin/docker-compose.yml +++ b/apps/atuin/docker-compose.yml @@ -13,7 +13,7 @@ services: environment: ATUIN_HOST: "0.0.0.0" ATUIN_OPEN_REGISTRATION: "true" - ATUIN_DB_URI: postgres://atuin:really-insecure@db/atuin + ATUIN_DB_URI: "postgres://atuin:${ATUIN_DB_PASSWORD}@db/atuin" networks: - tipi_main_network labels: @@ -49,7 +49,7 @@ services: - "${APP_DATA_DIR}/data:/var/lib/postgresql/data/" environment: POSTGRES_USER: atuin - POSTGRES_PASSWORD: really-insecure + POSTGRES_PASSWORD: "${ATUIN_DB_PASSWORD}" POSTGRES_DB: atuin networks: - tipi_main_network