nats permanent storage
This commit is contained in:
parent
f38f083d63
commit
593e1ac7d1
@ -25,7 +25,11 @@ services:
|
|||||||
|
|
||||||
nats:
|
nats:
|
||||||
image: nats:2.10
|
image: nats:2.10
|
||||||
command: "-config /nats_config.yml"
|
command: "-config /nats_config.conf"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nats_config.yml:/nats_config.yml:ro
|
- ./nats_config.conf:/nats_config.conf:ro
|
||||||
|
- natsdata:/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
natsdata:
|
||||||
|
|||||||
8
deploy/nats_config.conf
Normal file
8
deploy/nats_config.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
jetstream: enabled
|
||||||
|
max_payload: 4MB
|
||||||
|
|
||||||
|
jetstream {
|
||||||
|
store_dir: /data
|
||||||
|
max_memory_store: 1GB
|
||||||
|
max_file_store: 10GB
|
||||||
|
}
|
||||||
@ -1,2 +0,0 @@
|
|||||||
jetstream: enabled
|
|
||||||
max_payload: 4MB
|
|
||||||
Loading…
x
Reference in New Issue
Block a user