Added nats
This commit is contained in:
1 parent
399f5c7a6a
commit
fabe4bfcfb
3 files changed
+66
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# NATS with JetStream
|
||||
|
||||
This playbook will set up a NATS server with JetStream enabled using Docker.
|
||||
|
||||
## Settings
|
||||
|
||||
- `container_name`: name of the NATS container.
|
||||
- `container_image`: image to use for the NATS container.
|
||||
- `data_location`: host path for persistent data directory (default: `/var/lib/nats`).
|
||||
|
||||
## Running this Playbook
|
||||
|
||||
### 1. Customize Options
|
||||
|
||||
```shell
|
||||
nano vars/default.yml
|
||||
```
|
||||
|
||||
```yml
|
||||
#vars/default.yml
|
||||
---
|
||||
container_name: nats
|
||||
container_image: nats:latest
|
||||
data_location: /var/lib/nats
|
||||
```
|
||||
|
||||
### 2. Run the Playbook
|
||||
|
||||
```command
|
||||
ansible-playbook -l [target] -i [inventory file] -u [remote user] playbook.yml
|
||||
```
|
||||
Reference in new issue
Block a user