mirror of
				https://github.com/ItzCrazyKns/Perplexica.git
				synced 2025-11-04 04:38:15 +00:00 
			
		
		
		
	feat(docker-compose): use env vars from compose
This commit is contained in:
		@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user