prem-gateway
is an API gateway designed to handle and manage various operations, directing requests from prem-app
to either prem-daemon
for Docker image management or directly to Docker images that provide prem-services
.
- API Gateway
- Domain Management
- TLS
- (More features like Authentication/Authorization, Rate Limiting, Logging, and Metrics to be added soon.)
Create a Docker network:
docker network create prem-gateway
Set file permission:
chmod 600 ./traefik/letsencrypt/acme.json
Start the prem-gateway
:
make up
To stop the gateway:
make down
For production environments, use the Let's Encrypt production server:
make up LETSENCRYPT_PROD=true
To restart services and assign them with a subdomain/TLS certificate:
make up LETSENCRYPT_PROD=true SERVICES=premd,premapp
Run prem-gateway
with prem-app
and prem-daemon
:
make runall PREMD_IMAGE={IMG} PREMAPP_IMAGE={IMG}
Stop prem-gateway
, prem-app
, and prem-daemon
:
make stopall PREMD_IMAGE={IMG} PREMAPP_IMAGE={IMG}
prem-gateway
is licensed under MIT License.
Feel free to adapt this template to better fit the specifics and personality of your project!