Writes cProfile stats to a file on shutdown for performance analysis. Enable in compose.yaml for container profiling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
453 B
YAML
19 lines
453 B
YAML
services:
|
|
bouncer:
|
|
build:
|
|
context: .
|
|
dockerfile: Containerfile
|
|
container_name: bouncer
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
logging:
|
|
driver: k8s-file
|
|
environment:
|
|
PYTHONUNBUFFERED: "1"
|
|
PYTHONDONTWRITEBYTECODE: "1"
|
|
PYTHONPATH: /app/src
|
|
volumes:
|
|
- ./src:/app/src:Z,ro
|
|
- ./config:/data:Z
|
|
command: ["-c", "/data/bouncer.toml", "-v", "--cprofile", "/data/bouncer.prof"]
|