-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 1016 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
postgres:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-dbagent}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
POSTGRES_DB: ${POSTGRES_DB:-dbagent}
volumes:
- agent_postgres_data:/var/lib/postgresql/data
- ./apps/dbagent/scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- db_network
xata-agent:
image: xataio/agent:0.4.0
restart: unless-stopped
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-dbagent}:${POSTGRES_PASSWORD:-changeme}@postgres:5432/${POSTGRES_DB:-dbagent}
NODE_ENV: production
AUTH_TRUST_HOST: ${AUTH_TRUST_HOST:-localhost}
MCP_SERVERS_DIR: mcp-servers
env_file: '.env.production'
volumes:
- ./mcp-servers:/app/apps/dbagent/mcp-servers
ports:
- '8080:8080'
depends_on:
- postgres
networks:
- db_network
volumes:
agent_postgres_data:
networks:
db_network:
driver: bridge