mirror of
https://github.com/Sun-ZhenXing/mcp-template-python.git
synced 2026-05-06 14:08:56 +00:00
29 lines
602 B
YAML
29 lines
602 B
YAML
x-default: &default
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 100m
|
|
|
|
services:
|
|
app:
|
|
<<: *default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- PORT=${PORT:-3001}
|
|
image: ${DOCKER_REGISTRY:-docker.io}/local/${SERVICE_NAME:-mcp-template-python}:${BUILD_VERSION:-latest}
|
|
ports:
|
|
- "${MCP_PORT_OVERRIDE:-3001}:${PORT:-3001}"
|
|
env_file:
|
|
- .env
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1.0'
|
|
memory: 1024M
|
|
reservations:
|
|
cpus: '0.1'
|
|
memory: 256M
|