This project offers sample Docker container
configurations for various services.
-
Python Service:
python_service
- A container with a Python virtual environment
- Includes all dependencies listed in the
Pipfile
-
Golang Service:
go_service
- A container with a Go installation
- Includes all dependencies specified in the
go.mod
file
-
PostgreSQL Service:
psql_service
- A container with a PostgreSQL database connection
- The database is initialized based on the
./db/init.sh
file
-
Django REST with PostgreSQL Service:
django_psql_service
- A container with a Django application setup
- Includes a PostgreSQL database connection
To test any service container:
- Ensure
Docker Desktop
is installed and running (ordocker
anddocker-compose
). - Clone the repository.
- Navigate to the desired service folder in your terminal, e.g.:
cd /python_service
. - Run:
docker compose up
- To access a specific container's shell, use:
docker compose run <<service_name>> bash
- To access a specific container's shell, use: