Files
mcp-template-python/docker-compose.yaml
2025-09-24 22:27:58 +08:00

32 lines
705 B
YAML

x-default: &default
restart: unless-stopped
volumes:
- &localtime /etc/localtime:/etc/localtime:ro
- &timezone /etc/timezone:/etc/timezone:ro
logging:
driver: json-file
options:
max-size: 100m
services:
app:
<<: *default
build:
context: .
dockerfile: Dockerfile
args:
- PORT=${PORT:-3001}
image: ${DOCKER_REGISTRY:-docker.io}/${SERVICE_NAME:-mcp-template-python}:${BUILD_VERSION:-latest}
ports:
- "${MCP_PORT_OVERRIDE:-3001}:${PORT:-3001}"
env_file:
- .env
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M