Amal Nimmy Lal commited on
Commit
09e9870
·
1 Parent(s): 273b837

fix : port fix

Browse files
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: ⚡
4
  colorFrom: red
5
  colorTo: indigo
6
  sdk: docker
7
- app_port: 80
8
  pinned: false
9
  license: mit
10
  short_description: Semantic, shared AI project memory.
 
4
  colorFrom: red
5
  colorTo: indigo
6
  sdk: docker
7
+ app_port: 7860
8
  pinned: false
9
  license: mit
10
  short_description: Semantic, shared AI project memory.
backend/Dockerfile CHANGED
@@ -37,7 +37,7 @@ USER user
37
  RUN pip install --no-cache-dir --upgrade pip
38
 
39
  # Expose the port and set entrypoint to prepare /data at runtime
40
- EXPOSE 8000
41
 
42
  ENTRYPOINT ["/home/user/app/entrypoint.sh"]
43
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
37
  RUN pip install --no-cache-dir --upgrade pip
38
 
39
  # Expose the port and set entrypoint to prepare /data at runtime
40
+ EXPOSE 7860
41
 
42
  ENTRYPOINT ["/home/user/app/entrypoint.sh"]
43
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
backend/tests/test_complete_api.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  import json
5
  import sys
6
 
7
- BASE_URL = "http://localhost:8000"
8
 
9
  print("="*60)
10
  print("PROJECT MEMORY - COMPLETE API TEST")
 
4
  import json
5
  import sys
6
 
7
+ BASE_URL = "http://localhost:7860"
8
 
9
  print("="*60)
10
  print("PROJECT MEMORY - COMPLETE API TEST")
docker-compose.yml CHANGED
@@ -3,7 +3,7 @@ services:
3
  build: ./backend
4
  container_name: pm-backend
5
  ports:
6
- - "8000:8000"
7
  env_file: ./backend/.env
8
  volumes:
9
  - backend-data:/app/data
@@ -15,7 +15,7 @@ services:
15
  build: ./frontend
16
  container_name: pm-frontend
17
  ports:
18
- - "80:80"
19
  depends_on:
20
  - backend
21
  networks:
 
3
  build: ./backend
4
  container_name: pm-backend
5
  ports:
6
+ - "7860:7860"
7
  env_file: ./backend/.env
8
  volumes:
9
  - backend-data:/app/data
 
15
  build: ./frontend
16
  container_name: pm-frontend
17
  ports:
18
+ - "7860:7860"
19
  depends_on:
20
  - backend
21
  networks:
frontend/Dockerfile CHANGED
@@ -26,7 +26,7 @@ COPY --from=builder /app/dist /usr/share/nginx/html
26
  COPY nginx.conf /etc/nginx/conf.d/default.conf
27
 
28
  # Expose port
29
- EXPOSE 80
30
 
31
  # Start nginx
32
  CMD ["nginx", "-g", "daemon off;"]
 
26
  COPY nginx.conf /etc/nginx/conf.d/default.conf
27
 
28
  # Expose port
29
+ EXPOSE 7860
30
 
31
  # Start nginx
32
  CMD ["nginx", "-g", "daemon off;"]
frontend/nginx.conf CHANGED
@@ -1,5 +1,5 @@
1
  server {
2
- listen 80;
3
  server_name localhost;
4
 
5
  root /usr/share/nginx/html;
@@ -12,7 +12,7 @@ server {
12
 
13
  # API proxy
14
  location /api {
15
- proxy_pass http://backend:8000;
16
  proxy_http_version 1.1;
17
  proxy_set_header Upgrade $http_upgrade;
18
  proxy_set_header Connection 'upgrade';
@@ -25,7 +25,7 @@ server {
25
 
26
  # WebSocket support (if needed)
27
  location /ws {
28
- proxy_pass http://backend:8000;
29
  proxy_http_version 1.1;
30
  proxy_set_header Upgrade $http_upgrade;
31
  proxy_set_header Connection "upgrade";
 
1
  server {
2
+ listen 7860;
3
  server_name localhost;
4
 
5
  root /usr/share/nginx/html;
 
12
 
13
  # API proxy
14
  location /api {
15
+ proxy_pass http://backend:7860;
16
  proxy_http_version 1.1;
17
  proxy_set_header Upgrade $http_upgrade;
18
  proxy_set_header Connection 'upgrade';
 
25
 
26
  # WebSocket support (if needed)
27
  location /ws {
28
+ proxy_pass http://backend:7860;
29
  proxy_http_version 1.1;
30
  proxy_set_header Upgrade $http_upgrade;
31
  proxy_set_header Connection "upgrade";
nginx.conf CHANGED
@@ -15,7 +15,7 @@ http {
15
  keepalive_timeout 65;
16
 
17
  server {
18
- listen 80;
19
  server_name localhost;
20
 
21
  # Serve frontend static files
 
15
  keepalive_timeout 65;
16
 
17
  server {
18
+ listen 7860;
19
  server_name localhost;
20
 
21
  # Serve frontend static files