Skip to content

Commit

Permalink
fix backend, front and docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPorshnev committed Dec 20, 2024
1 parent fc844e5 commit d42042f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -36,7 +36,7 @@ services:
build:
context: ./frontent
ports:
- "80:80"
- "127.0.0.1:80:80"

volumes:
neo4j_data:
2 changes: 1 addition & 1 deletion frontent/src/app/services/toponyms.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) { }

Expand Down

0 comments on commit d42042f

Please sign in to comment.