Perplexica/docker-compose.yaml

70 lines
1.5 KiB
YAML
Raw Normal View History

2024-04-09 16:21:05 +05:30
services:
searxng:
image: docker.io/searxng/searxng:latest
volumes:
- ./searxng:/etc/searxng:rw
ports:
- 4000:8080
networks:
- perplexica-network
restart: unless-stopped
2024-04-09 16:21:05 +05:30
perplexica-backend:
build:
context: .
dockerfile: backend.dockerfile
args:
- SEARXNG_API_URL=http://searxng:8080
2024-04-09 16:21:05 +05:30
depends_on:
- searxng
ports:
- 3001:3001
volumes:
- backend-dbstore:/home/perplexica/data
- ./config.toml:/home/perplexica/config.toml
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- perplexica-network
restart: unless-stopped
2024-09-23 02:20:58 +03:00
develop:
watch:
- action: sync
path: ./backend
target: /home/perplexica
ignore:
- node_modules/
- action: rebuild
path: backend.dockerfile
2024-04-09 16:21:05 +05:30
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
2024-04-09 16:21:05 +05:30
depends_on:
- perplexica-backend
ports:
- 3000:3000
networks:
- perplexica-network
restart: unless-stopped
2024-09-23 02:20:58 +03:00
develop:
watch:
- action: sync
path: ./frontend
target: /app
ignore:
- node_modules/
- .next/
- action: rebuild
path: app.dockerfile
networks:
perplexica-network:
volumes:
backend-dbstore: