docs: update configuration deployment

This commit is contained in:
Jonas Kaninda
2024-11-10 21:34:52 +01:00
parent 22422fc46a
commit 10710b08c0
2 changed files with 14 additions and 4 deletions

View File

@@ -77,7 +77,16 @@ docker run --rm --name goma-gateway \
-v "${PWD}/config:/etc/goma/" \ -v "${PWD}/config:/etc/goma/" \
jkaninda/goma-gateway config init --output /etc/goma/goma.yml jkaninda/goma-gateway config init --output /etc/goma/goma.yml
``` ```
### 2. Run server ## 2. Check configuration
```shell
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. Run server
```shell ```shell
docker run --rm --name goma-gateway \ docker run --rm --name goma-gateway \
@@ -86,7 +95,7 @@ docker run --rm --name goma-gateway \
jkaninda/goma-gateway server jkaninda/goma-gateway server
``` ```
### 3. Start server with a custom config ### 4. Start server with a custom config
```shell ```shell
docker run --rm --name goma-gateway \ docker run --rm --name goma-gateway \
-v "${PWD}/config:/etc/goma/" \ -v "${PWD}/config:/etc/goma/" \
@@ -97,7 +106,8 @@ docker run --rm --name goma-gateway \
### 4. Healthcheck ### 4. Healthcheck
- Goma Gateway health check: `/health/live` - Goma Gateway health check: `/health/live`
- Routes health check: `health/routes` - Routes health check: `/health/routes`
### 5. Simple deployment in docker compose file ### 5. Simple deployment in docker compose file

View File

@@ -27,7 +27,7 @@ docker run --rm --name goma-gateway \
docker run --rm --name goma-gateway \ docker run --rm --name goma-gateway \
-v "${PWD}/config:/etc/goma/" \ -v "${PWD}/config:/etc/goma/" \
-p 8080:8080 \ -p 8080:8080 \
jkaninda/goma-gateway config config check --config /etc/goma/config.yml jkaninda/goma-gateway config check --config /etc/goma/config.yml
``` ```
### 3. Start server with a custom config ### 3. Start server with a custom config