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) <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +1,3 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
|
||||||
url: jdbc:postgresql://localhost:5432/cameleer_saas
|
|
||||||
username: cameleer
|
|
||||||
password: cameleer_dev
|
|
||||||
jpa:
|
jpa:
|
||||||
show-sql: true
|
show-sql: true
|
||||||
|
|
||||||
cameleer:
|
|
||||||
clickhouse:
|
|
||||||
url: jdbc:clickhouse://localhost:8123/cameleer
|
|
||||||
runtime:
|
|
||||||
cameleer3-server-endpoint: http://localhost:8081
|
|
||||||
|
|||||||
13
src/main/resources/application-local.yml
Normal file
13
src/main/resources/application-local.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user