-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsul.yml
More file actions
25 lines (24 loc) · 908 Bytes
/
consul.yml
File metadata and controls
25 lines (24 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
name: gateway
services:
consul:
image: docker.io/bitnami/consul:1.18.0
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
- 127.0.0.1:8300:8300
- 127.0.0.1:8500:8500
- 127.0.0.1:8600:8600
command: consul agent -dev -ui -client 0.0.0.0 -log-level=INFO
consul-config-loader:
image: jhipster/consul-config-loader:v0.4.1
volumes:
- ./central-server-config:/config
environment:
- INIT_SLEEP_SECONDS=5
- CONSUL_URL=consul
- CONSUL_PORT=8500
# Uncomment to load configuration into Consul from a Git repository
# as configured in central-server-config/git2consul.json
# Also set SPRING_CLOUD_CONSUL_CONFIG_FORMAT=files on your apps
# - CONFIG_MODE=git