This project is responsible for handling orchestration of containers. Uses Traefik as a reverse proxy to route to the correct container based on the subdomain.
┌───────────────────────┐
│ Transport Layer │
│ handles the incomin │
│ requests │
└───────────┬───────────┘
│
┌───────────▼───────────┐
│ Data Layer │
│ Manages data, │
│ create entities │
└───────────┬───────────┘
│
┌───────────▼───────────┐
│ Logic Layer │
│ business logic │
└───────────┬───────────┘
│
┌───────────▼───────────┐
│ Persistence layer │
└───────────────────────┘
- run the docker-compose.yml with
docker compose up -dto run the traefik service - run the command
docker run -d --name my-postgres --network db-network -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -v postgres-data:/var/lib/postgresql/data -p 5433:5432 postgres:latest
to run the containerized postgres-database
3.the datbase connection string postgresql://postgres:postgres@my-postgres:5432/{YOUR DATABASE NAME}