Fastapi + PSQL + Redit Container Description Commands docker-compose up --build migrate database docker-compose exec web alembic revision --autogenerate upgrade database docker-compose exec web alembic upgrade head access to the docker terminal docker-compose exec <service_name> bash Create a ssl key(KEY | REFRESH_KEY) openssl rand -hex 32 Down all containers and remove volumes docker-compose down -v To recreate services(when you change the docker-compose file and want to apply the changes) docker-compose up --build To recreate services and remove volumes docker-compose up --build -V To recreate services and remove volumes and build the images docker-compose up --force-recreate