version: '3.8'
services:
mcp-server:
build:
context: .
dockerfile: Dockerfile
container_name: mcp-postgres-server
restart: unless-stopped
env_file:
- .env
environment:
- NODE_ENV=production
- DEBUG=true
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@host.docker.internal:5432/${POSTGRES_DB}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./logs:/app/logs