Skip to content

UNTorneo/users-microservice-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comandos para ejecutar la base datos docker run --name users-db -e POSTGRES_PASSWORD=123 -e POSTGRES_USER=fastapi -e POSTGRES_DB=fastapi_db -d -p 5432:5432 postgres

Ejecutar microservicio en docker Crear imagen docker build -t users-ms .

Valentina docker run -p 8080:8080 -e dbHost=172.17.0.2 -e dbPort=5432 -e dbUser=fastapi -e dbPassword=123 -e dbName=fastapi_db -d --name users-ms users-ms

Sebastian docker run -p 8080:8080 -e dbHost=172.17.0.2 -e dbPort=5431 -e dbUser=fastapi -e dbPassword=123 -e dbName=fastapi_db --name users-ms users-ms

docker container ls -a -> Muestra lista contenedores -> Extraes el CONTAINER_ID -> docker inspect CONTAINER_ID

docker container start CONTAINER_ID docker container stop CONTAINER_ID

Para ejecutar en el local uvicorn app.main:app --reload

Swagger http://127.0.0.1:8080/docs

{ "username": "juanito", "birthday": "2020-05-05", "email": "[email protected]", "countryId": 1, "cityId": 1, "latitude": 0, "longitude": 0, "password": "juanitoelmejordelmundo" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •