feat(docker-compose): update ports, change network type

This commit is contained in:
ItzCrazyKns 2024-05-12 12:16:08 +05:30
parent 1b18715f8f
commit b622df5a9f
No known key found for this signature in database
GPG Key ID: 8162927C7CCE3065
1 changed files with 8 additions and 17 deletions

View File

@ -1,39 +1,30 @@
services:
searxng:
image: docker.io/searxng/searxng:latest
ports:
- 4000:8080
volumes:
- ./searxng:/etc/searxng:rw
networks:
- perplexica-network
ports:
- 31336:8080
perplexica-backend:
build:
context: .
dockerfile: backend.dockerfile
args:
- SEARXNG_API_URL=http://searxng:8080
- SEARXNG_API_URL=http://127.0.0.1:31336
depends_on:
- searxng
ports:
- 3001:3001
networks:
- perplexica-network
network_mode: host
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
- NEXT_PUBLIC_API_URL=http://127.0.0.1:31338/api
- NEXT_PUBLIC_WS_URL=ws://127.0.0.1:31338
- PORT=31337
depends_on:
- perplexica-backend
ports:
- 3000:3000
networks:
- perplexica-network
networks:
perplexica-network:
- 31337:31337