It feels like a likely, very simple procedure, but...
# community-help
m
It feels like a likely, very simple procedure, but would anyone like to show me how to upgrade our typesense version (self-hosted). Sorry, we’ve been using typesense for a while, but since it’s rather low-maintenance, our expertise is limited while we allot limited resources to other parts of our apps
j
m
Thank you!
👍 1
can you suggest a proper and stable version to upgrade to. I tried 28.0.4, not sure where that came from, but I keep getting this error
Copy code
Error response from daemon: manifest for typesense/typesense:28.0.4 not found: manifest unknown: manifest unknown
j
28.0.rc31
is the latest RC build
27.1
is the latest GA build
m
not sure what RC vs GA is. I actually did try it with 27.1, since that was what was in the docs, and it seemed to work. However, it is taking very long to finish, and I’m not sure if that is normal
it has been running for 31 minutes
j
Typesense reindexes the data on each process restart. So the time it takes to reindex depends on the size of your dataset
RC is release candidate (we do multiple RC builds before we promote a build to a stable GA - generally available - release
m
ah ok, makes sense
thanks again for your help. I checked this morning, and the rebuild is still going on, which seems like something might be going wrong. In this past, this process would take an hour, maybe 2?
j
Yeah something seems wrong. You want to check if there is sufficient RAM, disk space, CPU, etc
Could you share the last 100 lines from the Typesense logs
m
sure
Copy code
I20250110 16:39:58.354619   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:39:58.354722   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:40:08.355962   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:40:08.356062   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:40:18.357333   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:40:18.357440   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:40:28.358605   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:40:28.358707   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:40:38.360042   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:40:38.360141   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:40:48.159504   119 batched_indexer.cpp:428] Running GC for aborted requests, req map size: 0
I20250110 16:40:48.361394   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:40:48.361552   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:40:58.362727   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:40:58.362833   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:41:08.364114   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:41:08.364217   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:41:18.365526   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:41:18.365643   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:41:28.367133   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:41:28.367244   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:41:38.368445   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:41:38.368577   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:41:48.369793   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:41:48.369933   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:41:49.167018   119 batched_indexer.cpp:428] Running GC for aborted requests, req map size: 0
I20250110 16:41:58.371097   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:41:58.371196   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:42:08.372529   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:42:08.372642   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:42:18.373796   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:42:18.373899   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:42:28.375165   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:42:28.375281   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:42:38.376555   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:42:38.376660   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:42:48.378204   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:42:48.378320   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:42:50.174425   119 batched_indexer.cpp:428] Running GC for aborted requests, req map size: 0
I20250110 16:42:58.379493   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:42:58.379608   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:43:08.380801   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:43:08.380942   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:43:18.382318   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:43:18.382447   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:43:28.383601   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:43:28.383756   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:43:38.384868   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:43:38.385010   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:43:48.387545   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:43:48.387666   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:43:51.182332   119 batched_indexer.cpp:428] Running GC for aborted requests, req map size: 0
I20250110 16:43:58.388792   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:43:58.388938   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:44:08.390143   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:44:08.390259   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:44:18.391431   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:44:18.391563   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:44:28.392782   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:44:28.392913   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:44:38.394140   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:44:38.394282   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:44:48.395432   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:44:48.395577   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:44:52.189963   119 batched_indexer.cpp:428] Running GC for aborted requests, req map size: 0
I20250110 16:44:58.396855   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:44:58.397022   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:45:08.398334   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:45:08.398451   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:45:18.399674   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:45:18.399817   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:45:28.400970   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:45:28.401088   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:45:38.402248   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:45:38.402345   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:45:48.403630   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:45:48.403754   149 raft_server.h:60] Peer refresh succeeded!
I20250110 16:45:53.197546   119 batched_indexer.cpp:428] Running GC for aborted requests, req map size: 0
I20250110 16:45:58.404897   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 21, committed: 21, known_applied: 21, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 60
I20250110 16:45:58.405014   149 raft_server.h:60] Peer refresh succeeded!
for reference, here are the first lines:
Copy code
docker run -p 8108:8108 \
            -v/typesense-data:/data typesense/typesense:27.1 \
            --data-dir /data \
            --api-key=MmJkMzI0YjMtNDRiYi00Mzk3LWFkMzMtMjU1YmI2YWQxY2Ex \
            --enable-cors
Unable to find image 'typesense/typesense:27.1' locally
27.1: Pulling from typesense/typesense
6414378b6477: Pull complete 
3a187878aa3f: Pull complete 
4f4fb700ef54: Pull complete 
f03563e43b77: Pull complete 
Digest: sha256:5c12af89130b8ee0be11541321ba8a3a7c7a538d7c6cd95e0409dc2d75ca6455
Status: Downloaded newer image for typesense/typesense:27.1
I20250109 19:49:07.461660     1 typesense_server_utils.cpp:346] Starting Typesense 27.1
I20250109 19:49:07.461737     1 typesense_server_utils.cpp:349] Typesense is using jemalloc.
I20250109 19:49:07.462232     1 typesense_server_utils.cpp:411] Thread pool size: 16
I20250109 19:49:07.475266     1 store.cpp:40] Initializing DB by opening state dir: /data/db
I20250109 19:49:07.485607     1 store.cpp:40] Initializing DB by opening state dir: /data/meta
I20250109 19:49:07.495863     1 ratelimit_manager.cpp:546] Loaded 0 rate limit rules.
I20250109 19:49:07.495896     1 ratelimit_manager.cpp:547] Loaded 0 rate limit bans.
I20250109 19:49:07.496122     1 typesense_server_utils.cpp:556] Starting API service...
I20250109 19:49:07.496423   118 typesense_server_utils.cpp:248] Since no --nodes argument is provided, starting a single node Typesense cluster.
I20250109 19:49:07.496502     1 http_server.cpp:180] Typesense has started listening on port 8108
I20250109 19:49:07.496762   119 batched_indexer.cpp:190] Starting batch indexer with 16 threads.
I20250109 19:49:07.497061   121 typesense_server_utils.cpp:499] Conversation garbage collector thread started.
I20250109 19:49:07.498955   119 batched_indexer.cpp:195] BatchedIndexer skip_index: -9999
I20250109 19:49:07.508915   118 server.cpp:1181] Server[braft::RaftStatImpl+braft::FileServiceImpl+braft::RaftServiceImpl+braft::CliServiceImpl] is serving on port=8107.
I20250109 19:49:07.508965   118 server.cpp:1184] Check out <http://5b7e8e511c20:8107> in web browser.
I20250109 19:49:07.509883   118 raft_server.cpp:69] Nodes configuration: 172.17.0.2:8107:8108
I20250109 19:49:07.510041   118 raft_server.cpp:112] Snapshot does not exist. We will remove db dir and init db fresh.
I20250109 19:49:07.511202   118 store.cpp:246] rm /data/db success
I20250109 19:49:07.511260   118 store.cpp:40] Initializing DB by opening state dir: /data/db
I20250109 19:49:07.524771   118 store.cpp:270] DB open success!
I20250109 19:49:07.524803   118 raft_server.cpp:619] Loading collections from disk...
I20250109 19:49:07.524827   118 collection_manager.cpp:288] CollectionManager::load()
I20250109 19:49:07.524853   118 auth_manager.cpp:35] Indexing 0 API key(s) found on disk.
I20250109 19:49:07.524871   118 collection_manager.cpp:324] Loading upto 8 collections in parallel, 1000 documents at a time.
I20250109 19:49:07.524889   118 collection_manager.cpp:333] Found 0 collection(s) on disk.
I20250109 19:49:07.525426   118 collection_manager.cpp:464] Loaded 0 collection(s).
I20250109 19:49:07.525723   118 raft_server.cpp:626] Finished loading collections from disk.
I20250109 19:49:07.525758   118 raft_server.cpp:637] Loaded 0conversation model(s).
I20250109 19:49:07.525769   118 raft_server.cpp:641] Initializing batched indexer from snapshot state...
I20250109 19:49:07.526378   118 log.cpp:690] Use murmurhash32 as the checksum type of appending entries
W20250109 19:49:07.526422   118 protobuf_file.cpp:91] open file failed, path: /data/state/log/log_meta: FILE_ERROR_NOT_FOUND
W20250109 19:49:07.526437   118 log.cpp:698] /data/state/log is empty
I20250109 19:49:07.526547   118 log.cpp:1150] log save_meta /data/state/log/log_meta first_log_index: 1 time: 84
W20250109 19:49:07.526656   118 protobuf_file.cpp:91] open file failed, path: /data/state/meta/raft_meta: FILE_ERROR_NOT_FOUND
I20250109 19:49:07.526710   118 raft_meta.cpp:521] Loaded single stable meta, path /data/state/meta term 1 votedfor 0.0.0.0:0:0 time: 41
I20250109 19:49:07.526732   118 node.cpp:608] node default_group:172.17.0.2:8107:8108 init, term: 1 last_log_id: (index=0,term=0) conf: 172.17.0.2:8107:8108 old_conf: 
I20250109 19:49:07.526808   118 node.cpp:1645] node default_group:172.17.0.2:8107:8108 term 1 start vote and grant vote self
I20250109 19:49:07.526897   118 raft_meta.cpp:546] Saved single stable meta, path /data/state/meta term 2 votedfor 172.17.0.2:8107:8108 time: 60
I20250109 19:49:07.526922   118 node.cpp:1899] node default_group:172.17.0.2:8107:8108 term 2 become leader of group 172.17.0.2:8107:8108 
I20250109 19:49:07.527696   118 raft_server.cpp:135] Node last_index: 0
I20250109 19:49:07.527720   118 typesense_server_utils.cpp:296] Typesense peering service is running on 172.17.0.2:8107
I20250109 19:49:07.527733   118 typesense_server_utils.cpp:297] Snapshot interval configured as: 3600s
I20250109 19:49:07.527745   118 typesense_server_utils.cpp:298] Snapshot max byte count configured as: 4194304
W20250109 19:49:07.527756   118 controller.cpp:1550] SIGINT was installed with 1
I20250109 19:49:07.527781   118 raft_server.cpp:706] Term: 2, pending_queue: 1, last_index: 0, committed: 0, known_applied: 0, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
W20250109 19:49:07.527796   118 node.cpp:843] [default_group:172.17.0.2:8107:8108 ] Refusing concurrent configuration changing
I20250109 19:49:07.527801   149 log.cpp:114] Created new segment `/data/state/log/log_inprogress_00000000000000000001' with fd=23
E20250109 19:49:07.527827   118 raft_server.cpp:762] Node not ready yet (known_applied_index is 0).
E20250109 19:49:07.527907   131 raft_server.h:62] Peer refresh failed, error: Doing another configuration change
I20250109 19:49:07.527943   131 raft_server.h:293] Configuration of this group is 172.17.0.2:8107:8108
I20250109 19:49:07.527961   131 node.cpp:3298] node default_group:172.17.0.2:8107:8108 reset ConfigurationCtx, new_peers: 172.17.0.2:8107:8108, old_peers: 172.17.0.2:8107:8108
I20250109 19:49:07.527979   131 raft_server.h:276] Node becomes leader, term: 2
I20250109 19:49:17.528985   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 1, committed: 1, known_applied: 1, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
I20250109 19:49:17.529068   149 raft_server.h:60] Peer refresh succeeded!
I20250109 19:49:27.530344   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 1, committed: 1, known_applied: 1, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
I20250109 19:49:27.530442   149 raft_server.h:60] Peer refresh succeeded!
I20250109 19:49:37.531661   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 1, committed: 1, known_applied: 1, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
I20250109 19:49:37.531795   149 raft_server.h:60] Peer refresh succeeded!
I20250109 19:49:47.533268   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 1, committed: 1, known_applied: 1, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
I20250109 19:49:47.533381   149 raft_server.h:60] Peer refresh succeeded!
I20250109 19:49:57.534538   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 1, committed: 1, known_applied: 1, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
I20250109 19:49:57.534649   149 raft_server.h:60] Peer refresh succeeded!
I20250109 19:50:07.535871   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 1, committed: 1, known_applied: 1, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
I20250109 19:50:07.536021   149 raft_server.h:60] Peer refresh succeeded!
I20250109 19:50:08.506716   119 batched_indexer.cpp:428] Running GC for aborted requests, req map size: 0
I20250109 19:50:17.537142   118 raft_server.cpp:706] Term: 2, pending_queue: 0, last_index: 1, committed: 1, known_applied: 1, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 0
I20250109 19:50:17.537278   149 raft_server.h:60] Peer refresh succeeded!
j
I don't see an ongoing indexing operation based on the logs
The node looks healthy based on this:
"I20250110 164558.405014 149 raft_server.h:60] Peer refresh succeeded!"
But it doesn't seem to have found the existing data based on these lines:
I20250109 194907.524889 118 collection_manager.cpp:333] Found 0 collection(s) on disk.
I20250109 194907.525426 118 collection_manager.cpp:464] Loaded 0 collection(s).
I20250109 194907.525723 118 raft_server.cpp:626] Finished loading collections from disk.
You want to make sure that in your docker command, you've pointed the data directory to your existing data directory
Basically use the same mechanism you used to install Typesense earlier (including data dir, etc), but update the version number in the installation instructions
m
this is our original docker-compose.yml file
Copy code
version: '3.3'
services:
    typesense-prod:
        ports:
            - '${TYPESENSE_PORT}:8108'
        volumes:
            - ./data_prod:/data
        command: '--data-dir /data --api-key=${TYPESENSE_API_KEY} --num-documents-parallel-load=1 --snapshot-interval-seconds=84600 --enable-cors'
        image: 'typesense/typesense:0.24.0.rcn41'

    typesense-qa:
        ports:
            - '${TYPESENSE_PORT}:8108'
        volumes:
            - ./data_qa:/data
        command: '--data-dir /data --api-key=${TYPESENSE_API_KEY} --num-documents-parallel-load=1 --snapshot-interval-seconds=84600 --enable-cors'
        image: 'typesense/typesense:0.24.0.rcn41'

    typesense-dev:
        ports:
            - '${TYPESENSE_PORT}:8108'
        volumes:
            - ./data_dev:/data
        command: '--data-dir /data --api-key=${TYPESENSE_API_KEY} --num-documents-parallel-load=1 --snapshot-interval-seconds=84600 --enable-cors'
        image: 'typesense/typesense:0.24.0.rcn41'

    typesense-demo:
        ports:
            - '${TYPESENSE_PORT}:8108'
        volumes:
            - ./data_demo:/data
        command: '--data-dir /data --api-key=${TYPESENSE_API_KEY} --num-documents-parallel-load=1 --snapshot-interval-seconds=84600 --enable-cors'
        image: 'typesense/typesense:0.24.0.rcn41'

    typesense-dashboard:
        ports:
            - 80:80
            - 443:443
        image: '<http://ghcr.io/bfritscher/typesense-dashboard:latest|ghcr.io/bfritscher/typesense-dashboard:latest>'
j
So yeah, you'd just want to replace
0.24.0.rcn41
in that file with
27.1
and then do
docker compose down
and
docker compose up
m
ok, so I will stop the current process, and then run the two commands above. Will this run all the services? (I would like to do them one at a time)
j
That will indeed stop all the services inside of the docker compose file. I'm not too familiar with docker compose, but may be there's a way to just stop one of the services
f
There's
docker compose stop
followed by the service name: https://docs.docker.com/reference/cli/docker/compose/stop/
You can also pass service names in
compose down
: https://docs.docker.com/reference/cli/docker/compose/down/
m
‘up’ as well?
👍 1
ok, I found a command that we have used before:
Copy code
docker compose --env-file .<http://env.qa|env.qa> up -d typesense-qa
seems to have revived the db in the dashboard, and it appears to have the new version
🙌 1