thisAKcode / fastapi_streetart_map

0 stars 0 forks source link

todos docker #26

Closed thisAKcode closed 1 year ago

thisAKcode commented 1 year ago

TODOs: Figure out how docker would be useful here.

Different notes

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

thisAKcode commented 1 year ago

not relevant yet