forked from DrewThomasson/ebook2audiobook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (52 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
53 lines (52 loc) · 1.39 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
ebook2audiobook:
image: athomasson2/ebook2audiobook:${DEVICE_TAG:-cpu}
build:
context: .
dockerfile: Dockerfile
args:
APP_VERSION: ${APP_VERSION:-26.3.31}
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:-cu128}
build:
context: .
dockerfile: Dockerfile
args:
APP_VERSION: ${APP_VERSION:-26.3.31}
DEVICE_TAG: ${DEVICE_TAG:-cu128}
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]