35 lines
1011 B
YAML
35 lines
1011 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
cloud-mcp:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: cloud-mcp
|
|
restart: unless-stopped
|
|
volumes:
|
|
# Mount .env file if exists (optional, can use environment variables instead)
|
|
- ./.env:/app/.env:ro
|
|
environment:
|
|
- NODE_ENV=production
|
|
# PostgreSQL connection (required)
|
|
# - DATABASE_URL=${DATABASE_URL}
|
|
# Add your environment variables here or use .env file
|
|
# - NAS_HOST=${NAS_HOST}
|
|
# - SERVER_HOST=${SERVER_HOST}
|
|
# etc.
|
|
# Note: This service requires an external PostgreSQL database.
|
|
# Set DATABASE_URL environment variable to connect to your PostgreSQL instance.
|
|
# For local development, you can uncomment the postgres service below:
|
|
# depends_on:
|
|
# - postgres
|
|
stdin_open: true
|
|
tty: true
|
|
# Health check (optional)
|
|
healthcheck:
|
|
test: ["CMD", "bun", "--version"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|