Docker Installation
Run Goma Gateway easily with Docker.
For more details, visit the Docker Hub repository.
Check out Docker Compose templates for built-in orchestration and scalability.
1. Initialize Configuration
Generate a configuration file using the following command:
docker run --rm --name goma-gateway \
-v "${PWD}/config:/etc/goma/" \
jkaninda/goma-gateway config init --output /etc/goma/config.yml
If no file is provided, a default configuration is created at /etc/goma/goma.yml.
2. Validate Configuration
Check your configuration file for errors:
docker run --rm --name goma-gateway \
-v "${PWD}/config:/etc/goma/" \
-p 8080:8080 \
jkaninda/goma-gateway config check --config /etc/goma/config.yml
3. Start the Server with Custom Config
docker run --rm --name goma-gateway \
-v "${PWD}/config:/etc/goma/" \
-p 8080:8080 \
jkaninda/goma-gateway server --config /etc/goma/config.yml
4. Health Checks
Goma Gateway provides the following health check endpoints:
- Gateway Health:
/readyz
/healthz
- Routes Health:
/healthz/routes
5. Simple Deployment with Docker Compose
Here’s an example of deploying Goma Gateway using Docker Compose:
services:
goma-gateway:
image: jkaninda/goma-gateway
command: server
ports:
- "8080:8080"
- "8443:8443"
volumes:
- ./config:/etc/goma/