fix(database): correct r-nacos image and port docs
This commit is contained in:
6 files changed
+71
No files matched your search
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
database:
|
||||
image: docker.cnb.cool/znb/images/rnacos:v0.8.5
|
||||
container_name: dbx-rnacos-0.8
|
||||
ports:
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${DB_PORT:-8849}:8848"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${RNACOS_GRPC_PORT:-9849}:9848"
|
||||
- "${DB_BIND_ADDRESS:-127.0.0.1}:${RNACOS_CONSOLE_PORT:-10849}:10848"
|
||||
volumes:
|
||||
- data:/io
|
||||
environment:
|
||||
RNACOS_INIT_ADMIN_USERNAME: admin
|
||||
RNACOS_INIT_ADMIN_PASSWORD: "${DB_PASSWORD:-123456}"
|
||||
RNACOS_HTTP_PORT: "8848"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -ec 'exec 3<>/dev/tcp/127.0.0.1/8848; printf \"GET /health HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n\" >&3; cat <&3 | grep -q success'"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
volumes:
|
||||
data:
|
||||
@@ -0,0 +1,5 @@
|
||||
# r-nacos initialization
|
||||
|
||||
The service initializes the `admin` administrator from `RNACOS_INIT_ADMIN_USERNAME` and `RNACOS_INIT_ADMIN_PASSWORD` when its data volume is empty. The DBX recipe defaults the password to `123456`; set `DB_PASSWORD` before the first start to choose another password.
|
||||
|
||||
The named `data` volume preserves the initialized account. Changing `DB_PASSWORD` after the first start does not change the existing administrator password. Run `make db-reset DB=rnacos@0.8 CONFIRM=1` before starting again when a fresh account is required.
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"database": "rnacos",
|
||||
"name": "r-nacos",
|
||||
"version": "0.8.5",
|
||||
"displayVersion": "0.8",
|
||||
"image": "docker.cnb.cool/znb/images/rnacos:v0.8.5",
|
||||
"platforms": ["linux/amd64", "linux/arm64"],
|
||||
"service": "database",
|
||||
"defaultPort": 8848,
|
||||
"connection": { "host": "127.0.0.1", "port": 8849, "username": "admin", "password": "123456", "database": "dbx", "namespace": "public", "grpcPort": 9849, "consolePort": 10849 },
|
||||
"shell": ["bash"],
|
||||
"smoke": { "steps": [{ "name": "check the HTTP health endpoint", "command": ["bash", "-ec", "exec 3<>/dev/tcp/127.0.0.1/8848; printf 'GET /health HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3; cat <&3"], "expect": "success" }] }
|
||||
}
|
||||
Reference in new issue
Block a user