Currently, the url for redis that we use is hardcoded, which means:
If we would need to use it in another place, we would have to type the port and name by hand, instead of these attributes being in an env file, for instance.
Also, in the docker-compose.yaml file, there is no specified container_name for the redis container, which means that docker will use the current folder name as part of the name of the container (e.g. tts-be-redis_service) and then on the tasks.py the reference to the url is using the tts-be-redis_service, which causes it to simply stop working if the name of the folder is different than tts-be, which is painfully hardcoded and needs to be changed.
Currently, the url for redis that we use is hardcoded, which means:
If we would need to use it in another place, we would have to type the
port
andname
by hand, instead of these attributes being in anenv
file, for instance.Also, in the
docker-compose.yaml
file, there is no specifiedcontainer_name
for the redis container, which means that docker will use the current folder name as part of the name of the container (e.g.tts-be-redis_service
) and then on thetasks.py
the reference to the url is using thetts-be-redis_service
, which causes it to simply stop working if the name of the folder is different thantts-be
, which is painfully hardcoded and needs to be changed.