diff --git a/docker-compose.yml b/docker-compose.yml index d901251..cdf76c6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" diff --git a/frontend/src/RelayForm.tsx b/frontend/src/RelayForm.tsx index 229c7a8..fa742b3 100644 --- a/frontend/src/RelayForm.tsx +++ b/frontend/src/RelayForm.tsx @@ -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 }>({});