spring: application: name: pcp-complex-mission-service profiles: default: local config: import: "configserver:" cloud: config: uri: ${CONFIG_SERVER_URI:http://localhost:8888} fail-fast: ${CONFIG_SERVER_FAIL_FAST:true} profile: ${SPRING_CLOUD_CONFIG_PROFILE:${SPRING_PROFILES_ACTIVE:${spring.profiles.default}}} label: ${SPRING_CLOUD_CONFIG_LABEL:dev} --- # Fallback for direct bootRun when the external config server does not provide service datasource settings. spring: config: activate: on-profile: local datasource: driver-class-name: org.postgresql.Driver url: ${PCP_COMPLEX_MISSION_DATASOURCE_URL:jdbc:postgresql://${PCP_POSTGRES_HOST:localhost}:${PCP_POSTGRES_PORT:5432}/pcp_satellites} username: ${PCP_COMPLEX_MISSION_DATASOURCE_USERNAME:postgres} password: ${PCP_COMPLEX_MISSION_DATASOURCE_PASSWORD:password} jpa: hibernate: ddl-auto: validate properties: hibernate: dialect: org.hibernate.dialect.PostgreSQLDialect jdbc: lob: non_contextual_creation: true flyway: enabled: true baseline-on-migrate: true locations: classpath:db/migration codec: max-in-memory-size: 20MB --- spring: config: activate: on-profile: dev datasource: driver-class-name: org.postgresql.Driver url: ${PCP_COMPLEX_MISSION_DATASOURCE_URL:jdbc:postgresql://192.168.100.160:35400/pcp_satellites} username: ${PCP_COMPLEX_MISSION_DATASOURCE_USERNAME:postgres} password: ${PCP_COMPLEX_MISSION_DATASOURCE_PASSWORD:password} jpa: hibernate: ddl-auto: validate properties: hibernate: dialect: org.hibernate.dialect.PostgreSQLDialect jdbc: lob: non_contextual_creation: true flyway: enabled: true baseline-on-migrate: true locations: classpath:db/migration codec: max-in-memory-size: 20MB