Perplexica/docker-compose.yaml
WanQuanXie 2f90e3f1a2 build(app): optimize app docker image size
export app static pages and deploy with Nginx image, instead of host `next start` service
2024-05-08 18:07:39 +08:00

39 lines
No EOL
749 B
YAML

services:
searxng:
build:
context: .
dockerfile: searxng.dockerfile
ports:
- 4000:8080
networks:
- perplexica-network
perplexica-backend:
build:
context: .
dockerfile: backend.dockerfile
args:
- SEARXNG_API_URL=http://searxng:8080
depends_on:
- searxng
ports:
- 3001:3001
networks:
- perplexica-network
perplexica-frontend:
build:
context: .
dockerfile: app.dockerfile
args:
- NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
depends_on:
- perplexica-backend
ports:
- 3000:80
networks:
- perplexica-network
networks:
perplexica-network: