fix docker-compose networking

This commit is contained in:
2024-07-13 22:14:35 +03:00
parent 56e6ba7b77
commit 689920bf7c
2 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,8 @@ services:
- "1307:80"
depends_on:
- backend
networks:
- app-network
backend:
build:
@ -16,3 +18,9 @@ services:
dockerfile: Dockerfile
ports:
- "1308:8080"
networks:
- app-network
networks:
app-network:
driver: bridge

View File

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