mirror of
https://github.com/Sun-ZhenXing/mcp-template-python.git
synced 2026-02-04 02:03:32 +00:00
24 lines
537 B
YAML
24 lines
537 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: 1m
|
|
|
|
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:
|
|
- "${EXPOSE_PORT:-3001}:${PORT:-3001}"
|
|
env_file:
|
|
- .env
|