diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9df597c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +__pycache__ +*.pyc +*.pyo +*.egg-info diff --git a/.env b/.env new file mode 100644 index 0000000..a662b42 --- /dev/null +++ b/.env @@ -0,0 +1,20 @@ +# PostgreSQL database host +POSTGRES_HOST=products_db + +# PostgreSQL database user +POSTGRES_USER=username + +# PostgreSQL database password +POSTGRES_PASSWORD=password + +# PostgreSQL database name +POSTGRES_DATABASE=database + +# PostgreSQL database port +POSTGRES_PORT=5432 + +# Asynchronous database URI for connecting to PostgreSQL +ASYNC_DATABASE_URI=postgresql+asyncpg://username:password@products_db:5432/database + +# Name of the project or application +PROJECT_NAME=Product Listings diff --git a/README.md b/README.md index f045616..bb280ae 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,11 @@ # Commands `alias pps="podman container ps -a"` + `alias pre="podman-compose down && podman-compose up -d"` `podman-compose up` + `podman-compose down` # Dockerfile