Skip to content

Commit 80eb4e5

Browse files
authored
Merge pull request #249 from dpkirchner/tune-docker
Tune docker
2 parents 9ff0bf1 + 24a0a45 commit 80eb4e5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ RUN apt-get update && apt-get upgrade -y \
99
&& ln -s /usr/bin/python3 /usr/bin/python
1010

1111
WORKDIR /app
12-
COPY . .
1312
ENV CUDA_DOCKER_ARCH=all
13+
COPY system/requirements/requirements_docker.txt system/requirements/requirements_docker.txt
1414
RUN pip install --no-cache-dir --no-deps -r system/requirements/requirements_docker.txt && \
1515
pip install --no-cache-dir deepspeed
16+
COPY . .
1617

1718
EXPOSE 7851 7852
1819
RUN chmod +x launch.sh

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.8'
22
services:
33
alltalk-tts:
4-
image: alltalk:v1-9c
4+
image: ${IMAGE:-alltalk:v1-9c}
55
restart: unless-stopped
66
ports:
77
- "7851:7851"
@@ -12,6 +12,12 @@ services:
1212
- ./voices:/app/voices/
1313
- ./finetune/put-voice-samples-in-here:/app/finetune/put-voice-samples-in-here
1414
- ./dockerconfig.json:/app/confignew.json
15+
healthcheck:
16+
test: ["CMD", "wget", "-qO-", "http://localhost:7851/api/ready"]
17+
interval: 1m30s
18+
timeout: 30s
19+
retries: 5
20+
start_period: 30s
1521
deploy:
1622
resources:
1723
reservations:

0 commit comments

Comments
 (0)