Add Docker Compose stack (Meilisearch + API image) and compose-based Task targets
This commit is contained in:
1 parent
a9674ce14e
commit
d51eda8290
4 files changed
+80
-16
No files matched your search
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
meilisearch:
|
||||
image: getmeili/meilisearch:v1.24
|
||||
container_name: meili-showcase
|
||||
ports: ["7700:7700"]
|
||||
environment:
|
||||
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-masterKey}
|
||||
MEILI_ENV: development
|
||||
volumes:
|
||||
- meili-data:/meili_data
|
||||
|
||||
api:
|
||||
build: .
|
||||
ports: ["8080:8080"]
|
||||
environment:
|
||||
MEILI_HOST: http://meilisearch:7700
|
||||
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:-masterKey}
|
||||
HTTP_ADDR: ":8080"
|
||||
depends_on: [meilisearch]
|
||||
# The API applies index settings at boot and exits if the engine is not up
|
||||
# yet; restarting is the whole retry policy this demo needs.
|
||||
restart: unless-stopped
|
||||
# Only the engine starts by default; add --profile full for the API too.
|
||||
profiles: ["full"]
|
||||
|
||||
volumes:
|
||||
meili-data:
|
||||
Reference in new issue
Block a user