nats permanent storage

This commit is contained in:
Egor Aristov 2025-02-01 22:29:00 +03:00
parent f38f083d63
commit 593e1ac7d1
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F
3 changed files with 14 additions and 4 deletions

View File

@ -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
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