diff --git a/apps/linkding/config.json b/apps/linkding/config.json index a82c815..752dcc4 100644 --- a/apps/linkding/config.json +++ b/apps/linkding/config.json @@ -13,7 +13,23 @@ "author": "sissbruecker", "source": "https://github.com/sissbruecker/linkding", "website": "https://www.linkding.link/", - "form_fields": [], + "form_fields": [ + { + "type": "text", + "label": "Initial superuser name", + "max": "50", + "required": true, + "placeholder": "admin", + "env_variable": "ENV_SUPERUSER_NAME" + }, + { + "type": "password", + "label": "Initial superuser password", + "max": "100", + "required": true, + "env_variable": "ENVLD_SUPERUSER_PASSWORD" + } + ], "supported_architectures": ["arm64", "amd64"], "created_at": 1763331296327, "updated_at": 1763331296327 diff --git a/apps/linkding/docker-compose.json b/apps/linkding/docker-compose.json index 864d4c0..60ae035 100644 --- a/apps/linkding/docker-compose.json +++ b/apps/linkding/docker-compose.json @@ -6,6 +6,10 @@ "image": "sissbruecker/linkding:1.44.1-alpine", "isMain": true, "internalPort": 9090, + "environment": [ + {"key": "LD_SUPERUSER_NAME", "value": "ENV_SUPERUSER_NAME"}, + {"key": "LD_SUPERUSER_PASSWORD", "value": "ENV_SUPERUSER_PASSWORD"} + ], "volumes": [ { "hostPath": "${APP_DATA_DIR}/data", @@ -17,4 +21,4 @@ ] } ] -} +