aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yaml
blob: 68b7cae48a772c68fbecf3d6df1818bda3830784 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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:<port> in .env):
    # extra_hosts:
    #   - "host.docker.internal:host-gateway"