This commit is contained in:
2024-07-13 22:07:09 +03:00
parent 0c3ec631f6
commit 56e6ba7b77
2 changed files with 4 additions and 4 deletions

View File

@ -6,13 +6,13 @@ services:
context: ./frontend
dockerfile: Dockerfile
ports:
- "1307:80" # Map port 80 of the frontend container to port 3000 on localhost
- "1307:80"
depends_on:
- backend # Ensure backend service is started before frontend
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "1308:8080" # Map port 8080 of the backend container to port 8080 on localhost
- "1308:8080"

View File

@ -8,7 +8,7 @@ type Assignment = {
events: string[];
};
const backend = axios.create({ baseURL: "http://localhost:8080" });
const backend = axios.create({ baseURL: "http://localhost:1307" });
const RelayForm: React.FC = () => {
const [forms, setForms] = useState<{ [key: string]: React.ReactNode }>({});