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-gatewaySet file permission:
chmod 600 ./traefik/letsencrypt/acme.jsonStart the prem-gateway:
make upTo stop the gateway:
make downFor production environments, use the Let's Encrypt production server:
make up LETSENCRYPT_PROD=trueTo restart services and assign them with a subdomain/TLS certificate:
make up LETSENCRYPT_PROD=true SERVICES=premd,premappRun 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!