File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,23 @@ services:
3636 retries : 5
3737 restart : unless-stopped
3838
39+ # Meilisearch for full-text search
40+ meilisearch :
41+ image : getmeili/meilisearch:v1.11
42+ restart : unless-stopped
43+ volumes :
44+ - meilisearch_data:/meili_data
45+ ports :
46+ - " 7700:7700"
47+ environment :
48+ MEILI_ENV : development
49+ healthcheck :
50+ test : ["CMD", "curl", "-f", "http://localhost:7700/health"]
51+ interval : 10s
52+ timeout : 5s
53+ retries : 3
54+ start_period : 15s
55+
3956 # Rails API
4057 api :
4158 build : .
@@ -50,6 +67,8 @@ services:
5067 depends_on :
5168 redis :
5269 condition : service_healthy
70+ meilisearch :
71+ condition : service_healthy
5372 networks :
5473 - default
5574 - security-net
@@ -79,6 +98,8 @@ services:
7998 depends_on :
8099 redis :
81100 condition : service_healthy
101+ meilisearch :
102+ condition : service_healthy
82103 healthcheck :
83104 test : ["CMD-SHELL", "bundle exec sidekiqmon processes | grep -q 'busy' || exit 1"]
84105 interval : 30s
@@ -92,6 +113,7 @@ volumes:
92113 postgres_data :
93114 redis_data :
94115 bundle_cache :
116+ meilisearch_data :
95117
96118networks :
97119 security-net :
You can’t perform that action at this time.
0 commit comments