From 806895fbd05989423bb16954407afd321808859d Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sat, 4 Apr 2026 22:45:07 +0200 Subject: [PATCH] fix: separate dev and local profiles for Docker vs bare-metal dev profile: activated inside Docker containers (show-sql only) local profile: for running Maven outside Docker (localhost overrides) Usage: mvn spring-boot:run -Dspring-boot.run.profiles=dev,local Co-Authored-By: Claude Opus 4.6 (1M context) --- src/main/resources/application-dev.yml | 10 ---------- src/main/resources/application-local.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 src/main/resources/application-local.yml diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index a2a09bb..45827c3 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,13 +1,3 @@ spring: - datasource: - url: jdbc:postgresql://localhost:5432/cameleer_saas - username: cameleer - password: cameleer_dev jpa: show-sql: true - -cameleer: - clickhouse: - url: jdbc:clickhouse://localhost:8123/cameleer - runtime: - cameleer3-server-endpoint: http://localhost:8081 diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml new file mode 100644 index 0000000..bf185ef --- /dev/null +++ b/src/main/resources/application-local.yml @@ -0,0 +1,13 @@ +## Profile for running outside Docker (mvn spring-boot:run -Dspring-boot.run.profiles=dev,local) +## Overrides docker hostnames with localhost for Postgres, ClickHouse, cameleer3-server +spring: + datasource: + url: jdbc:postgresql://localhost:5432/cameleer_saas + username: cameleer + password: cameleer_dev + +cameleer: + clickhouse: + url: jdbc:clickhouse://localhost:8123/cameleer + runtime: + cameleer3-server-endpoint: http://localhost:8081