The following documentation adopts the following few rules:
- parameters wrapped in angle bracket
<PARAM>
are required. - parameters wrapped in square bracket
[PARAM]
are optional. - if there is a colon after the parameter symbolic name
[PARAM:default_value]
, it means that the value after it is the default value for parameter.
make init
This will update all git submodules and prepare the basic .env
and docker-compose.yaml
if they are not already exist.
make start
Starts containers defined in docker-compose files for this project.
make start-and-build
Starts containers defined in docker-compose files for this project with --build
flag.
make stop
Stops containers defined in docker-compose files for this project.
make prune
Stops containers defined in docker-compose files for this project with -v
flag which removes the named volumes. This means you will lose any data stored in local datastores like mongo
etc.
make restart service=<SERVICE>
Restarts container for given service.
<SERVICE>
- the name of the service to restart. Allowed values are:gateway
,naming-server
,authorization-server
,email-service
,post-service
,user-service
,flight-service
.
make pull
Pulls actual container versions from DockerHub.
make logs service=[SERVICE]
Print logs from given service do standard output.
<SERVICE>
- the name of the service to switch to interactive mode. Allowed values are:gateway
,naming-server
,authorization-server
,email-service
,post-service
,user-service
,flight-service
. If no service is provided this command will print logs from all containers.
make interactive service=<SERVICE> target=[TARGET:dev]
<SERVICE>
- name of the service to switch to interactive mode. Allowed values are:gateway
,naming-server
,authorization-server
,email-service
,post-service
,user-service
,flight-service
[TARGET]
- target fromDockerfile
that should be used for interactive container.dev
- builds container with hot-reload feature.release
- builds container same as the one used for production.
Error 10
- Unknown or invalid service name for<SERVICE>
parameterError 20
- Unknown or invalid target for[TARGET]
parameter
Don't forgot to call make restart
after this command to restart containers with new configuration.
make standalone service=<SERVICE>
<SERVICE>
- the name of the service to switch to standalone mode. Allowed values are:gateway
,naming-server
,authorization-server
,email-service
,post-service
,user-service
,flight-service
Error 10
- Unknown or invalid service name for<SERVICE>
parameter
Don't forgot to call make restart
after this command to restart containers with new configuration.
make update-submodules
Updates all git submodule.