Skip to content

Commit 842213c

Browse files
committed
Clean deploy: Remove nginx, use direct ports
1 parent 0f7fe33 commit 842213c

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
backend:
53
build: ./backend
@@ -18,18 +16,8 @@ services:
1816
container_name: doc2md-frontend
1917
ports:
2018
- "8080:4173"
19+
environment:
20+
- VITE_API_URL=http://localhost:8000
2121
depends_on:
2222
- backend
2323
restart: unless-stopped
24-
25-
nginx:
26-
image: nginx:alpine
27-
container_name: doc2md-nginx
28-
ports:
29-
- "3000:80"
30-
volumes:
31-
- ./nginx.conf:/etc/nginx/nginx.conf
32-
depends_on:
33-
- frontend
34-
- backend
35-
restart: unless-stopped

frontend/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useCallback } from 'react';
22
import { useDropzone } from 'react-dropzone';
33
import axios from 'axios';
44

5-
const API_URL = 'http://localhost:8000';
5+
const API_URL = 'http://43.159.37.10:8000';
66

77
function App() {
88
const [files, setFiles] = useState([]);

0 commit comments

Comments
 (0)