save jasmin.cfg

219 views
Skip to first unread message

Marat Soznatelny

unread,
Oct 31, 2023, 8:25:11 AM10/31/23
to Jasmin SMS Gateway
how to save the configuration?

I am running jasmin in docker. If I run the persist command - I see a message that everything is saved, but after restarting "docker-compose down" everything is lost.
I have the following settings:
jasmin:
    image: jookies/jasmin:latest
    restart: unless-stopped
    volumes:
      - jasmin_configs:/etc/jasmin
      - jasmin_logs:/var/log/jasmin

Marat Soznatelny

unread,
Oct 31, 2023, 8:42:30 AM10/31/23
to Jasmin SMS Gateway
[router]
# Jasmin router persists its routing configuration profiles in /etc/jasmin/store by
# default. You can specify a custom location here
#store_path                     = /etc/jasmin/store

# Router will automatically persist users and groups to disk whenever a critical information
# is updated (ex: user balance), persistence is executed every persistence_timer_secs
persistence_timer_secs = 60
it doesn't work
вторник, 31 октября 2023 г. в 17:25:11 UTC+5, Marat Soznatelny:

Marat Soznatelny

unread,
Nov 1, 2023, 5:57:25 AM11/1/23
to Jasmin SMS Gateway
jcli : persist - for save config

вторник, 31 октября 2023 г. в 17:42:30 UTC+5, Marat Soznatelny:

Kisuke CZE

unread,
Nov 16, 2023, 4:56:38 PM11/16/23
to Jasmin SMS Gateway
Hi,

I would expect something like this in your compose.yaml:

services:

  jasmin:
    image: jookies/jasmin:latest
    restart: unless-stopped
    volumes:
      - jasmin_configs:/etc/jasmin
      - jasmin_logs:/var/log/jasmin
      - jasmin_store:/etc/jasmin/store
volumes:
  jasmin_configs:
  jasmin_logs:
  jasmin_store:

Dne středa 1. listopadu 2023 v 10:57:25 UTC+1 uživatel Marat Soznatelny napsal:
Reply all
Reply to author
Forward
0 new messages