docker build -t fastapi-image -f Dockerfile.fastapi .
docker build -t postgres-image -f Dockerfile.postgresql .
docker-compose build
docker-compose up
docker-compose exec fastapi sh
python
import psycopg2
conn = psycopg2.connect(host="postgres", port=5432, dbname="fastapi_db", user="admin", password="password")