services: ebook2audiobook: image: athomasson2/ebook2audiobook:${DEVICE_TAG:-cpu} build: context: . dockerfile: Dockerfile args: APP_VERSION: ${APP_VERSION:-26.6.9} DEVICE_TAG: ${DEVICE_TAG:-cpu} working_dir: /app entrypoint: ["bash", "ebook2audiobook.command", "--script_mode", "full_docker"] tty: true stdin_open: true ports: - "7860:7860" volumes: - ./ebooks:/app/ebooks:rw - ./audiobooks:/app/audiobooks:rw - ./models:/app/models:rw - ./voices:/app/voices:rw - ./tmp:/app/tmp:rw restart: unless-stopped profiles: [cpu] ebook2audiobook-gpu: image: athomasson2/ebook2audiobook:${DEVICE_TAG:-cu130} build: context: . dockerfile: Dockerfile args: APP_VERSION: ${APP_VERSION:-26.6.9} DEVICE_TAG: ${DEVICE_TAG:-cu130} working_dir: /app entrypoint: ["bash", "ebook2audiobook.command", "--script_mode", "full_docker"] tty: true stdin_open: true ports: - "7860:7860" volumes: - ./ebooks:/app/ebooks:rw - ./audiobooks:/app/audiobooks:rw - ./models:/app/models:rw - ./voices:/app/voices:rw - ./tmp:/app/tmp:rw restart: unless-stopped profiles: [gpu] deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu]