nats permanent storage

This commit is contained in:
Egor Aristov 2025-02-01 22:29:00 +03:00
parent 58d7d1f972
commit bdccf591a8
3 changed files with 14 additions and 4 deletions

View File

@ -25,7 +25,11 @@ services:
nats:
image: nats:2.10
command: "-config /nats_config.yml"
command: "-config /nats_config.conf"
volumes:
- ./nats_config.yml:/nats_config.yml:ro
- ./nats_config.conf:/nats_config.conf:ro
- natsdata:/data
restart: unless-stopped
volumes:
natsdata:

8
deploy/nats_config.conf Normal file
View File

@ -0,0 +1,8 @@
jetstream: enabled
max_payload: 4MB
jetstream {
store_dir: /data
max_memory_store: 1GB
max_file_store: 10GB
}

View File

@ -1,2 +0,0 @@
jetstream: enabled
max_payload: 4MB