Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix config file name and add sample config file #225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion website/docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```