forked from ItzCrazyKns/Perplexica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
66 lines (62 loc) · 1.45 KB
/
docker-compose.dev.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
searxng:
image: docker.io/searxng/searxng:latest
volumes:
- ./searxng:/etc/searxng:rw
ports:
- 4000:8080
networks:
- perplexica-network
perplexica-backend:
build:
context: .
dockerfile: backend.dev.dockerfile
depends_on:
- searxng
ports:
- 3001:3001
volumes:
- ./src:/home/perplexica/src
- ./package.json:/home/perplexica/package.json
- ./yarn.lock:/home/perplexica/yarn.lock
- backend-dbstore:/home/perplexica/data
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- perplexica-network
environment:
- SEARXNG_API_URL=http://searxng:8080
develop:
watch:
- path: ./package.json
action: rebuild
- path: ./src
target: /home/perplexica/src
action: sync
perplexica-frontend:
build:
context: .
dockerfile: app.dev.dockerfile
depends_on:
- perplexica-backend
ports:
- 3000:3000
volumes:
- ./ui:/home/perplexica
- /home/perplexica/node_modules
networks:
- perplexica-network
environment:
- NEXT_PUBLIC_API_URL=http://localhost:3001/api
- NEXT_PUBLIC_WS_URL=ws://localhost:3001
develop:
watch:
- path: ./ui/package.json
action: rebuild
- path: ./ui
target: /home/perplexica
action: sync
networks:
perplexica-network:
volumes:
backend-dbstore: