feat(docker-compose): use env vars from compose
This commit is contained in:
parent
c233362e70
commit
9f88d16ef1
|
@ -1,8 +1,5 @@
|
||||||
FROM node:slim
|
FROM node:slim
|
||||||
|
|
||||||
ARG SEARXNG_API_URL
|
|
||||||
ENV SEARXNG_API_URL=${SEARXNG_API_URL}
|
|
||||||
|
|
||||||
WORKDIR /home/perplexica
|
WORKDIR /home/perplexica
|
||||||
|
|
||||||
COPY src /home/perplexica/src
|
COPY src /home/perplexica/src
|
||||||
|
|
|
@ -13,9 +13,9 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: backend.dockerfile
|
dockerfile: backend.dockerfile
|
||||||
args:
|
|
||||||
- SEARXNG_API_URL=http://searxng:8080
|
|
||||||
image: itzcrazykns1337/perplexica-backend:main
|
image: itzcrazykns1337/perplexica-backend:main
|
||||||
|
environment:
|
||||||
|
- SEARXNG_API_URL=http://searxng:8080
|
||||||
depends_on:
|
depends_on:
|
||||||
- searxng
|
- searxng
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue