mtg_python_deckbuilder/docker-compose.yml

24 lines
792 B
YAML
Raw Permalink Normal View History

2025-08-21 09:19:20 -07:00
services:
mtg-deckbuilder:
build: .
2025-08-21 10:13:19 -07:00
container_name: mtg-deckbuilder-main
2025-08-21 09:35:32 -07:00
stdin_open: true # Equivalent to docker run -i
tty: true # Equivalent to docker run -t
2025-08-21 09:19:20 -07:00
volumes:
2025-08-21 09:30:14 -07:00
- ${PWD}/deck_files:/app/deck_files
- ${PWD}/logs:/app/logs
- ${PWD}/csv_files:/app/csv_files
# Optional: mount a config directory for headless JSON
- ${PWD}/config:/app/config
2025-08-21 09:19:20 -07:00
environment:
- PYTHONUNBUFFERED=1
2025-08-21 09:30:14 -07:00
- TERM=xterm-256color
2025-08-21 09:35:32 -07:00
- DEBIAN_FRONTEND=noninteractive
# Set DECK_MODE=headless to auto-run non-interactive mode on start
# - DECK_MODE=headless
# Optional headless configuration (examples):
# - DECK_CONFIG=/app/config/deck.json
# - DECK_COMMANDER=Pantlaza
2025-08-21 09:30:14 -07:00
# Ensure proper cleanup
restart: "no"