services: senator-sperma: build: context: . # This host's default Docker bridge DNS cannot resolve crates.io / # deb.debian.org, so build on the host network. Remove this line if # your Docker setup resolves DNS normally. network: host image: senator-sperma:latest container_name: senator-sperma restart: unless-stopped init: true env_file: - .env environment: # The host .env points TTS_MODEL_PATH at an absolute host path, which # does not exist inside the container. The model is mounted below. TTS_MODEL_PATH: /app/piper # espeak-ng data is baked into the image by the Dockerfile. PIPER_ESPEAKNG_DATA_DIRECTORY: /usr/share # Override if the bot should not use Polish local time for cron jobs. # TZ: Europe/Warsaw volumes: - ./data:/app/data - ./piper:/app/piper:ro # If Copyparty runs on the host, uncomment so the container can reach it # (then use http://host.docker.internal: in .env): # extra_hosts: # - "host.docker.internal:host-gateway"