Skip to content

Commit

Permalink
Refact: Add environment in docker-compose
Browse files Browse the repository at this point in the history
Refact: Add environment in docker-compose
  • Loading branch information
alexiusstrauss authored Nov 28, 2023
2 parents b58d6de + bc3546d commit 0ab850d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ Utilizei o framework Nuxt3 e criei um componente responsável consumir a API.
se tudo estiver ok você poderá acessar o swagger da api no endereço: http://127.0.0.1:8000/docs
e poderá acessar o app na página: http://127.0.0.1:3000.

### Audios de exemplo:
### Arquivo para teste:
na pasta 'audios' contem dois arquivos para testar a aplicação.
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

audio_files/


.env
Empty file added backend/audio_files/.gitkeep
Empty file.
4 changes: 4 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ services:
audiotopic-api:
image: audiotopic-api:latest
container_name: audiotopic-api
environment:
OPEN_AI_TOKEN: sk-change-me
TENSORFLOW_MODEL_NAME: "t5-small"

command: sh -c "pipenv run uvicorn src.api:app --reload --host 0.0.0.0 --port 8000"
ports:
- "8000:8000"
Expand Down

0 comments on commit 0ab850d

Please sign in to comment.