-
Notifications
You must be signed in to change notification settings - Fork 2
Lightweight spring config server in docker
Oleksandr Loushkin edited this page Jul 16, 2018
·
2 revisions
lightweight spring configuration file
- create docker-compose file
app-config:
container_name: "app-config"
hostname: "app-config"
image: laviua/komock:latest
ports:
- 8888:8888
volumes:
- ./app-config/etc/:/etc/komock/
2.put config file app-config/etc/config.yml
springConfig:
enabled: true
refreshPeriod: 10000
sourceFolder: /etc/komock/springconfig/
profiles:
- default
httpServer:
name: spring-config-httpServer
port: 8888
host: 127.0.0.1
ssl:
enabled: false
- put spring config files into the app-config/etc/springconfig/ watchdog will detect all changes and reload http configuration