This repository contains Docker configurations and orchestration for the portfolio-yues-docker-config, which consists of a frontend built with NestJS and a backend built with Next.js. It uses Docker Compose to define and run multi-container Docker applications.
This repository serves as the central location for managing the Docker containers for both the frontend and backend of the application. It contains a docker-compose.yml
file that defines how to build and run these services alongside a PostgreSQL database.
The docker-compose.yml
defines three services:
- Database: A PostgreSQL database for persistent storage.
- Backend: The NestJS application.
- Frontend: The Next.js application.
You can customize the configurations in the docker-compose.yml
file to suit your needs, such as changing the ports or database credentials.
To run the application locally using Docker Compose, follow these steps:
-
to run container for db: https://github.com/YuesIt17/portfolio-yues-nestjs-docker/blob/main/README.md#settings-of-docker-for-db
-
to create images for:
-
to run the containers via:
docker-compose up -d
-
to stop and remove the
containers via: docker-compose down