Skip to content

Commit

Permalink
fix: meilisync docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jan 15, 2024
1 parent 5ce703c commit 03b6514
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile.meilisync
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM long2ice/meilisync

WORKDIR /meilisync

ADD packages/database/meilisync.yml ./config.yml
ADD packages/database/meilisync.yml /meilisync/config.yml

RUN sed -i "s/\${POSTGRES_HOST}/${POSTGRES_HOST}/g" config.yml \
sed -i "s/\${POSTGRES_PORT}/${POSTGRES_PORT}/g" config.yml \
sed -i "s/\${POSTGRES_USERNAME}/${POSTGRES_USERNAME}/g" config.yml \
sed -i "s/\${POSTGRES_PASSWORD}/${POSTGRES_PASSWORD}/g" config.yml \
sed -i "s/\${POSTGRES_DATABASE}/${POSTGRES_DATABASE}/g" config.yml \
sed -i "s/\${MEILI_URL}/${MEILI_URL}/g" config.yml \
sed -i "s/\${MEILI_KEY}/${MEILI_KEY}/g" config.yml
&& sed -i "s/\${POSTGRES_PORT}/${POSTGRES_PORT}/g" config.yml \
&& sed -i "s/\${POSTGRES_USERNAME}/${POSTGRES_USERNAME}/g" config.yml \
&& sed -i "s/\${POSTGRES_PASSWORD}/${POSTGRES_PASSWORD}/g" config.yml \
&& sed -i "s/\${POSTGRES_DATABASE}/${POSTGRES_DATABASE}/g" config.yml \
&& sed -i "s/\${MEILI_URL}/${MEILI_URL}/g" config.yml \
&& sed -i "s/\${MEILI_KEY}/${MEILI_KEY}/g" config.yml

CMD meilisync start

0 comments on commit 03b6514

Please sign in to comment.