forked from ItzCrazyKns/Perplexica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (45 loc) · 1.19 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
searxng:
image: searxng/searxng
container_name: SearXNG
mem_limit: 8g
cpu_shares: 2048
security_opt:
- no-new-privileges:true
volumes:
- /volume1/docker/searxng:/etc/searxng:rw
restart: on-failure:5
ports:
- 5147:8080
perplexica-backend:
build:
context: .
dockerfile: backend.dockerfile
image: itzcrazykns1337/perplexica-backend:main
container_name: Perplexica-Backend
environment:
- SEARXNG_API_URL=http://192.168.1.2:5147
depends_on:
- searxng
ports:
- 3001:3001
volumes:
- /volume1/docker/perplexica/data:/home/perplexica/data
- /volume1/docker/perplexica/config/config.toml:/home/perplexica/config.toml
extra_hosts:
- 'host.docker.internal:host-gateway'
restart: on-failure:5
perplexica-frontend:
build:
context: .
dockerfile: app.dockerfile
args:
- NEXT_PUBLIC_API_URL=http://192.168.1.2:3001/api
- NEXT_PUBLIC_WS_URL=ws://192.168.1.2:3001
image: gambitdross/perplexica-frontend:main
container_name: Perplexica-Frontend
depends_on:
- perplexica-backend
ports:
- 3000:3000
restart: on-failure:5