Преглед на файлове

Add optional Adminer database viewer to docker-compose

Lets people browse the knowledge database at http://localhost:8080.
It sits behind the "viewer" profile, so a plain "docker compose up"
does not start it, and it is bound to 127.0.0.1 only. Login steps are
in the compose comments. It logs in as the main database user, so it
is for browsing only: edits made there bypass the Foundry.Knowledge
module's rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main^2
Daniel Covington преди 2 дни
родител
ревизия
b194ae5abc
променени са 1 файла, в които са добавени 16 реда и са изтрити 0 реда
  1. +16
    -0
      docker-compose.yml

+ 16
- 0
docker-compose.yml Целия файл

@@ -35,6 +35,22 @@ services:
volumes:
- ollama_data:/root/.ollama

# Optional database browser for people (agents use the Foundry.Knowledge module, never this).
# docker compose --profile viewer up -d adminer then open http://localhost:8080
# Log in: System PostgreSQL, Server postgres, Username foundry, Password from .env, Database foundry
# Look in schema "knowledge". Browse only: edits here bypass the module's rules.
adminer:
image: adminer
container_name: foundry-adminer
profiles: ["viewer"]
restart: unless-stopped
environment:
ADMINER_DEFAULT_SERVER: postgres
ports:
- "127.0.0.1:8080:8080"
depends_on:
- postgres

volumes:
postgres_data:
ollama_data:

Loading…
Отказ
Запис

Powered by TurnKey Linux.