The purpose of infrastructure is to have a central repo from where you can
locally run the whole microservice architecture using Docker Compose.
-
Extract keys from
/keys. -
Use make:
make # Build and run
make run # Build and run
make build # Just build
make down # Shut down
make PROFILE=full # Build and run, including the web app
make run PROFILE=full # Build and run, including the web app
make build PROFILE=full # Just build, including the web app
make down PROFILE=full # Shut down, including the web app
# See `Makefile` for usage- To view Grafana, go to http://localhost:3000 (username
admin, passwordadmin)
This is the assumed project layout on your computer:
./
- infrastructure/
compose.yml
default.env
run.sh
- user-service/
src/
Dockerfile
...Infrastructure's compose.yml reads the Dockerfile of each microservice locally
based on its relative location which specified in default.env.
If you have a different project layout, create an override.env file and write the correct relative paths on your computer. override.env is not tracked by git, so there will be no conflicts.