+ postgresql server & pgadmin
This commit is contained in:
@ -93,6 +93,33 @@ services:
|
||||
PMA_HOST: db
|
||||
PMA_USER: root
|
||||
PMA_PASSWORD: 123456
|
||||
# PostgreSQL 18, official image. Since 18 the data lives in /var/lib/postgresql/18/docker,
|
||||
# so the volume (declared in the compose file that extends this service) is mounted at /var/lib/postgresql.
|
||||
pgsql:
|
||||
image: postgres:18
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: intai
|
||||
POSTGRES_PASSWORD: intai
|
||||
POSTGRES_DB: intai
|
||||
volumes:
|
||||
- database-pgsql:/var/lib/postgresql
|
||||
- ./hostfiles:/hostfiles
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:9
|
||||
restart: always
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: info@wpstudio.ru
|
||||
PGADMIN_DEFAULT_PASSWORD: postgres
|
||||
# desktop mode: no login page, a single local user
|
||||
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
||||
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
||||
# the intai server is registered from servers.json on every start
|
||||
PGADMIN_SERVER_JSON_FILE: /pgadmin4/servers.json
|
||||
PGADMIN_REPLACE_SERVERS_ON_STARTUP: 'True'
|
||||
volumes:
|
||||
- pgadmin:/var/lib/pgadmin
|
||||
- ./config/pgadmin/servers.json:/pgadmin4/servers.json:ro
|
||||
inbucket:
|
||||
image: inbucket/inbucket
|
||||
restart: always
|
||||
@ -154,3 +181,12 @@ services:
|
||||
LOG_FILE: /tmp/mcp_server.log
|
||||
ports:
|
||||
- "127.0.0.1:${MCP_MARIADB_PORT:-8765}:9001"
|
||||
# Postgres MCP Pro (https://github.com/crystaldba/postgres-mcp), SSE like mcp-mariadb.
|
||||
mcp-postgres:
|
||||
image: crystaldba/postgres-mcp:0.3.0
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_URI: postgresql://intai:intai@pgsql:5432/intai
|
||||
command: [ "--transport=sse", "--sse-host=0.0.0.0" ]
|
||||
ports:
|
||||
- "127.0.0.1:${MCP_POSTGRES_PORT:-8766}:8000"
|
||||
|
||||
Reference in New Issue
Block a user