From a4efadb24a953b640dfb79abe237f62b4b227833 Mon Sep 17 00:00:00 2001 From: Daniel Dye Date: Tue, 22 Aug 2023 20:19:04 +0300 Subject: [PATCH] fix config name and add sample config file --- website/docs/docker.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/website/docs/docker.md b/website/docs/docker.md index ddb90db..e1a4950 100644 --- a/website/docs/docker.md +++ b/website/docs/docker.md @@ -34,5 +34,41 @@ The image uses the repository configuration file by default. [Bind mount](https://docs.docker.com/storage/bind-mounts/) a custom file to configure the server: ```sh -docker run -d --name=skyhook -v "$(pwd)"/config/server.yml:/app/server.yml -p 6379:6379 skyhook +docker run -d --name=skyhook -v "$(pwd)"/config/skyhook.yml:/app/skyhook.yml -p 6379:6379 skyhook ``` + + +If you are running Aerospike in another Docker container, consider changing hostList to `host.docker.internal:3000` as shown in the following exmaple config file (`skyhook.yml`): + + +``` +--- +# Skyhook server configuration + +# hostList: localhost:3000 +hostList: host.docker.internal:3000 +namespace: test +set: redis +bin: b +redisPort: 6379 + +# Aerospike Java Client [com.aerospike.client.policy.ClientPolicy] configuration. +#clientPolicy: +# user: admin +# password: pwd@1234 +# clusterName: cluster1 +# authMode: EXTERNAL_INSECURE +# timeout: 1500 +# loginTimeout: 3000 +# asyncMinConnsPerNode: 50 +# asyncMaxConnsPerNode: 200 +# failIfNotConnected: true +# useServicesAlternate: true + +# Bind on unix socket. +#unixSocket: "/tmp/skyhook.sock" + +workerThreads: 2 +bossThreads: 1 +``` +