diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..f5b0d46b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +services: + speech-synthesis: + image: thevickypedia/speech-synthesis:latest + container_name: speech-synthesis + restart: always + ports: + - "5002:5002" + environment: + HOME: "${HOME}" + working_dir: "${PWD}" + volumes: + - "${HOME}:${HOME}" + - /usr/share/ca-certificates:/usr/share/ca-certificates + - /etc/ssl/certs:/etc/ssl/certs + user: "${UID}:${GID}" + stdin_open: true + tty: true diff --git a/jarvis/__init__.py b/jarvis/__init__.py index bc1069ad..bc108fd3 100644 --- a/jarvis/__init__.py +++ b/jarvis/__init__.py @@ -6,6 +6,7 @@ version = "5.1.0" +# todo: gather and join all processes that are triggered def __preflight_check__() -> Callable: """Startup validator that imports Jarvis' main module to validate all dependencies' installation status. diff --git a/jarvis/modules/audio/speech_synthesis.py b/jarvis/modules/audio/speech_synthesis.py index 6efd697a..092095fb 100644 --- a/jarvis/modules/audio/speech_synthesis.py +++ b/jarvis/modules/audio/speech_synthesis.py @@ -179,6 +179,7 @@ def run_new_container(client: DockerClient) -> str: # This may take a while depending on image availability logger.info("Spinning up a new docker container to run speech-synthesis API") result = client.containers.run( + name="speech-synthesis", image="thevickypedia/speech-synthesis", ports={"5002/tcp": models.env.speech_synthesis_port}, environment=[f"HOME={models.env.home}"],