PROJECT={{project name or namespace}} make dev
PROJECT={{project name or namespace}} make dev-rest
PROJECT={{project name or namespace}} make dev-web
docker build -f .docker/Dockerfile -t api-grpc-gateway .
docker run -p 8081:8080 \
--env APP_ENV="alpha" \
--env MICRO_SERVER_NAME="{{project name or namespace}}.grpc.gateway" \
--env MICRO_CLIENT="grpc" \
--env MICRO_SERVER="grpc" \
--env MICRO_REGISTRY="consul" \
--env MICRO_REGISTRY_ADDRESS="dev-consul:8500" \
--env MICRO_CLIENT_REQUEST_TIMEOUT="15s" \
--env CORS_ALLOWED_ORIGINS="domain.com" \
--env GATEWAY_NAMESPACE="{{project name or namespace}}" \
-d --restart always \
--network devenv \
--name api-grpc-gateway api-grpc-gateway
docker build -f .docker/Dockerfile.rest -t api-rest-gateway .
docker run -p 8081:8080 \
--env APP_ENV="alpha" \
--env MICRO_SERVER_NAME="{{project name or namespace}}.rest.gateway" \
--env MICRO_REGISTRY="consul" \
--env MICRO_REGISTRY_ADDRESS="dev-consul:8500" \
--env MICRO_CLIENT_REQUEST_TIMEOUT="15s" \
--env CORS_ALLOWED_ORIGINS="domain.com" \
--env GATEWAY_NAMESPACE="{{project name or namespace}}" \
-d --restart always \
--network devenv \
--name api-rest-gateway api-rest-gateway
docker build -f .docker/Dockerfile.web -t api-web-gateway .
docker run -p 8081:8080 \
--env APP_ENV="alpha" \
--env MICRO_SERVER_NAME="{{project name or namespace}}.web.gateway" \
--env MICRO_REGISTRY="consul" \
--env MICRO_REGISTRY_ADDRESS="dev-consul:8500" \
--env MICRO_CLIENT_REQUEST_TIMEOUT="15s" \
--env CORS_ALLOWED_ORIGINS="domain.com" \
--env GATEWAY_NAMESPACE="{{project name or namespace}}" \
-d --restart always \
--network devenv \
--name api-rest-gateway api-rest-gateway