feat(docker-compose): use env vars from compose

This commit is contained in:
ItzCrazyKns 2024-10-02 22:54:00 +05:30
parent c233362e70
commit 9f88d16ef1
2 changed files with 2 additions and 5 deletions

View File

@ -1,8 +1,5 @@
FROM node:slim
ARG SEARXNG_API_URL
ENV SEARXNG_API_URL=${SEARXNG_API_URL}
WORKDIR /home/perplexica
COPY src /home/perplexica/src

View File

@ -13,9 +13,9 @@ services:
build:
context: .
dockerfile: backend.dockerfile
args:
- SEARXNG_API_URL=http://searxng:8080
image: itzcrazykns1337/perplexica-backend:main
environment:
- SEARXNG_API_URL=http://searxng:8080
depends_on:
- searxng
ports: