Created
May 13, 2022 04:27
-
-
Save vaibhavpandeyvpz/4eb65d29efff2c979d0d38c48aea86d6 to your computer and use it in GitHub Desktop.
Run Meilisearch server on Apple (M1) silicon using Docker, for Laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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