Closed thisAKcode closed 1 year ago
TODOs: Figure out how docker would be useful here.
Figure out whether you need a Docker container. Set up Docker container
docker -v docker pull postgres:alpine docker run --name fastapi-postgres -e POSTGRES_PASSWORD=password -d -p 5432:5432 postgres:alpine docker ps docker exec -it fastapi-postgres bash psql -U postgres create database python_db; create user postgres with encrypted password 'ljlkd%fFDFw12?Dg0vRiF'; grant all privileges on database python_db to postgres_v2; \c python_db; psql -h localhost -p 5432 postgres; \dt
ctrl d to quit
not relevant yet
TODOs: Figure out how docker would be useful here.
Different notes
Figure out whether you need a Docker container. Set up Docker container
ctrl d to quit