diff --git a/backend/app.py b/backend/app.py index dc923c2..ed5be5d 100644 --- a/backend/app.py +++ b/backend/app.py @@ -385,4 +385,4 @@ def export_data(): if __name__ == "__main__": clear_database() import_toponyms("toponyms_data.json") - app.run(debug=True, port=5001) + app.run(debug=True, port=5001, host='0.0.0.0') diff --git a/docker-compose.yml b/docker-compose.yml index 2b21012..f40ffc9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,13 +15,13 @@ services: interval: 10s timeout: 10s retries: 10 - start_period: 30s + start_period: 30s backend: build: context: ./backend ports: - - "5001:5001" + - "127.0.0.1:5001:5001" volumes: - ./backend:/app environment: @@ -36,7 +36,7 @@ services: build: context: ./frontent ports: - - "80:80" + - "127.0.0.1:80:80" volumes: neo4j_data: diff --git a/frontent/src/app/services/toponyms.service.ts b/frontent/src/app/services/toponyms.service.ts index d057ab2..8b8f04d 100644 --- a/frontent/src/app/services/toponyms.service.ts +++ b/frontent/src/app/services/toponyms.service.ts @@ -8,7 +8,7 @@ import { catchError, Observable, throwError } from "rxjs"; }) export class ToponymsService { - private readonly API_BASE_URL = 'http://backend:5001/api'; + private readonly API_BASE_URL = 'http://127.0.0.1:5001/api'; constructor(private readonly http: HttpClient) { }