That is the docker-compose part of full stack project consisting of (at least) 4 Docker Containers started with docker-compose file
- database container (postgres)
- database user interface container (pgadmin4)
- backend container (spring boot)
- frontend container (angular)
You need the docker-compose.yml from this project to build this multiple container application.
the structure should like this (some of the important files are on the picture below):
fullstack-project-folder
└───backend folder
│ │ ...
│ └───src
│ │ ...
│
└───frontend folder
│ └───nginx
│ │ │ default.conf
│ │
│ │ proxy-config-local.json
│ │ ...
│
└───infrastructure folder
│ │ README.md
│ │ docker-compose.yml
- Angular
- Docker
- Spring Boot
- nginx
- npm
- Maven Wrapper
- building the angular project - production files
ng build
creates the dist folder in the angular project
- building spring boot jar - for this step we are using maven wrapper for convinience
./mvnw package
that is the command line solution, but you can also do it straight with your IDE
- open the folder of the infrastructure project with the console and:
docker-compose up
that will start the multiple container application, creating all of the 4 containers (only if you already create the right project structure like in the picture above!)
work in progress ✍️
work in progress ✍️
work in progress ✍️
work in progress ✍️
work in progress ✍️