Skip to content

Instantly share code, notes, and snippets.

@vaibhavpandeyvpz
Created May 13, 2022 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaibhavpandeyvpz/4eb65d29efff2c979d0d38c48aea86d6 to your computer and use it in GitHub Desktop.
Save vaibhavpandeyvpz/4eb65d29efff2c979d0d38c48aea86d6 to your computer and use it in GitHub Desktop.
Run Meilisearch server on Apple (M1) silicon using Docker, for Laravel
version: '3'
services:
meilisearch:
build:
context: .
dockerfile: Dockerfile.ms
environment:
MEILI_MASTER_KEY: masterKey
ports:
- '7700:7700'
volumes:
- meilisearch-data:/data.ms
volumes:
meilisearch-data:
FROM ubuntu
WORKDIR /meilisearch
RUN apt-get update && \
apt-get install -y libc6-dev wget
RUN wget -O exe https://github.com/meilisearch/MeiliSearch/releases/download/v0.12.0/meilisearch-linux-armv8 && \
chmod a+x exe
RUN mkdir /data.ms
ENV MEILI_DB_PATH=/data.ms
ENV MEILI_HTTP_ADDR=0.0.0.0:7700
EXPOSE 7700
CMD ["/meilisearch/exe"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment