Skip to content

Commit acf64d2

Browse files
committed
Enable Consul for Docker
1 parent ecee2e7 commit acf64d2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/resources/application-docker.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
spring.cloud.consul.enabled=false
1+
spring.config.import=consul:
2+
spring.cloud.consul.host=${CONSUL_HOST:brambling-note-consul-server}
3+
spring.cloud.consul.port=${CONSUL_PORT:8500}
24

35
spring.datasource.url=${DATASOURCE_URL:jdbc:postgresql://postgres:5432/brambling_note_note}
46
spring.datasource.username=${DATASOURCE_USERNAME:postgres}

0 commit comments

Comments
 (0)