Skip to content

Commit 4db817c

Browse files
committed
feat: add meilisearch feature
1 parent 79bd4f5 commit 4db817c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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

96118
networks:
97119
security-net:

0 commit comments

Comments
 (0)