prem-gateway
acts as an API gateway for directing and managing a multitude of operations.
It is responsible for routing requests from the frontend prem-app
to either the prem-daemon
for Docker image management or directly to Docker images providing prem-services
.
- API Gateway
- Authentication/Authorization
- Domain Management
- TLS
- Rate Limiting
- Logging
- Metrics
Create network:
docker network create prem-gateway
Change permission:
chmod 600 ./traefik/letsencrypt/acme.json
Start prem-gateway:
make up
Default Let's Encrypt CA server is the staging. For production, start prem-gateway with bellow command'.
make up LETSENCRYPT_PROD=true
Stop prem-gateway:
make down
In order to restart services outside prem-gateway and to assign them with subdomain/tls certificate, use bellow command.
make up LETSENCRYPT_PROD=true SERVICES=premd,premapp
make runall PREMD_IMAGE={IMG} PREMAPP_IMAGE={IMG}
make stopall PREMD_IMAGE={IMG} PREMAPP_IMAGE={IMG}