diff --git a/src/main/scala/db/DBConnection.scala b/src/main/scala/db/DBConnection.scala
index 922acbf..eeee9ff 100644
--- a/src/main/scala/db/DBConnection.scala
+++ b/src/main/scala/db/DBConnection.scala
@@ -12,9 +12,10 @@ object DBConnection {
private def getDbName = sys.env.getOrElse("POSTGRES_DB", "")
private def getDbUser = sys.env.getOrElse("POSTGRES_USER", "")
private def getDbPassword = sys.env.getOrElse("POSTGRES_PASSWORD", "")
+ private def getDbHost = sys.env.getOrElse("POSTGRES_HOST", "")
private def getDatabaseUrl: String =
- sys.env.getOrElse("DATABASE_URL", s"postgres://${getDbUser}:${getDbPassword}@postgres:5432/${getDbName}") // host - postgres for docker, 0.0.0.0 outside docker
+ sys.env.getOrElse("DATABASE_URL", s"postgres://${getDbUser}:${getDbPassword}@${getDbHost}:5432/${getDbName}") // host - postgres for docker, 0.0.0.0 outside docker
private def parseUrl(url: String): Either[String, PostgresConfig] = {
Try {
diff --git a/web/src/App.tsx b/web/src/App.tsx
index 1580c3c..8d202fd 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -10,8 +10,6 @@ import { apiHost } from './consts';
console.log("env:", import.meta.env.MODE);
console.log("api host:", apiHost);
-// type Section = "station" | "cities" | "country" | "database";
-
const App: Component = () => {
const pages: [string, () => JSXElement][] = [
["station", () =>