You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
350 B
YAML

version: '3.11'
services:
python-logger:
build:
context: .
dockerfile: Dockerfile
# 启用 BuildKit 缓存
args:
- BUILDKIT_INLINE_CACHE=1 # 允许缓存复用
container_name: my-python-logger
volumes:
- ./logs:/app/logs
working_dir: /app
#restart: unless-stopped
restart: on-failure