Skip to content

Commit 484bf0f

Browse files
committed
feat: remove elasticsearch, use typesense, bump to v2.11.5
1 parent 7e25aad commit 484bf0f

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

docker-compose.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ services:
1212
- pushpin
1313
restart: unless-stopped
1414
static: # Hosts frontend assets
15-
image: julianpoy/recipesage-selfhost:static-v2.11.0-beta19
15+
image: julianpoy/recipesage-selfhost:static-v2.11.5
1616
environment:
1717
- API_BASE_OVERRIDE=null
1818
volumes:
1919
- ./static.entrypoint.sh:/docker-entrypoint.d/static.entrypoint.sh
2020
restart: unless-stopped
2121
api: # Hosts backend API
22-
image: julianpoy/recipesage-selfhost:api-v2.11.0-beta19
22+
image: julianpoy/recipesage-selfhost:api-v2.11.5
2323
depends_on:
2424
- postgres
25-
- elasticsearch
25+
- typesense
2626
- pushpin
2727
- browserless
28-
command: npx --yes tsx packages/backend/src/bin/www
28+
command: npx ts-node --swc --project packages/backend/tsconfig.json packages/backend/src/bin/www
2929
environment:
3030
- STORAGE_TYPE=filesystem
3131
- FILESYSTEM_STORAGE_PATH=/rs-media
@@ -39,13 +39,14 @@ services:
3939
- POSTGRES_HOST=postgres
4040
- POSTGRES_SSL=false
4141
- POSTGRES_LOGGING=false
42+
- DATABASE_URL=postgresql://recipesage_selfhost:recipesage_selfhost@postgres:5432/recipesage_selfhost
4243
- GCM_KEYPAIR
4344
- SENTRY_DSN
4445
- GRIP_URL=http://pushpin:5561/
4546
- GRIP_KEY=changeme
46-
- SEARCH_PROVIDER=elasticsearch
47-
- ELASTIC_CONN=http://elastic:recipesage_selfhost@elasticsearch:9200
48-
- ELASTIC_PASSWORD=recipesage_selfhost
47+
- SEARCH_PROVIDER=typesense
48+
- 'TYPESENSE_NODES=[{"host": "typesense", "port": 8108, "protocol": "http"}]'
49+
- TYPESENSE_API_KEY=recipesage_selfhost
4950
- STRIPE_SK
5051
- STRIPE_WEBHOOK_SECRET
5152
- BROWSERLESS_HOST=browserless
@@ -54,16 +55,11 @@ services:
5455
volumes:
5556
- apimedia:/rs-media
5657
restart: unless-stopped
57-
elasticsearch: # Provides fuzzy search functionality
58-
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.1
59-
environment:
60-
- discovery.type=single-node
61-
- "ES_JAVA_OPTS=-Xms1500m -Xmx1500m"
62-
- ELASTIC_PASSWORD=recipesage_selfhost
63-
- xpack.security.enabled=false
58+
typesense:
59+
image: typesense/typesense:0.24.1
6460
volumes:
65-
- elasticsearchdata:/usr/share/elasticsearch/data
66-
restart: unless-stopped
61+
- typesensedata:/data
62+
command: "--data-dir /data --api-key=recipesage_selfhost --enable-cors"
6763
pushpin: # Provides websocket support
6864
image: fanout/pushpin:1.27.0
6965
environment:
@@ -93,7 +89,7 @@ services:
9389
volumes:
9490
apimedia:
9591
driver: local
96-
elasticsearchdata:
92+
typesensedata:
9793
driver: local
9894
postgresdata:
9995
driver: local

0 commit comments

Comments
 (0)