fix docker-compose networking
This commit is contained in:
@ -9,6 +9,8 @@ services:
|
|||||||
- "1307:80"
|
- "1307:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
@ -16,3 +18,9 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "1308:8080"
|
- "1308:8080"
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app-network:
|
||||||
|
driver: bridge
|
||||||
|
|||||||
@ -8,7 +8,7 @@ type Assignment = {
|
|||||||
events: string[];
|
events: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
const backend = axios.create({ baseURL: "http://localhost:1307" });
|
const backend = axios.create({ baseURL: "http://backend:1307" });
|
||||||
|
|
||||||
const RelayForm: React.FC = () => {
|
const RelayForm: React.FC = () => {
|
||||||
const [forms, setForms] = useState<{ [key: string]: React.ReactNode }>({});
|
const [forms, setForms] = useState<{ [key: string]: React.ReactNode }>({});
|
||||||
|
|||||||
Reference in New Issue
Block a user