mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-09-22 04:50:46 +02:00
23 lines
792 B
YAML
23 lines
792 B
YAML
services:
|
|
mtg-deckbuilder:
|
|
build: .
|
|
container_name: mtg-deckbuilder-main
|
|
stdin_open: true # Equivalent to docker run -i
|
|
tty: true # Equivalent to docker run -t
|
|
volumes:
|
|
- ${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
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- TERM=xterm-256color
|
|
- 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
|
|
# Ensure proper cleanup
|
|
restart: "no"
|