Public | Automated Build

Last pushed: a year ago
Short Description
A docker image of Spring Cloud Config Server
Full Description

Spring Cloud Config Server

A docker image of Spring Cloud Config Server. This image has Spring Cloud Bus using rabbitmq (amqp) configured. To disable it, use the config:

spring:
  cloud:
    bus:
      enabled: false

Usage

docker run -it --name=spring-cloud-config-server \
      -p 8888:8888 \
      -v </path/to/config>:/config \
      flytxt/spring-cloud-config-server

Parameters

  • -p 8888 Server port
  • -v /config Mounted configuration

Configuring Spring Cloud Config Server

You may use environment variables or you can mount configuration in the provided volume. See the Spring Boot documentation for further information on how to use and configure Spring Boot.

Configuration examples

  • Using a mounted config Directory
    docker run -it -p 8888:8888 \
       -v /path/to/config/dir:/config \
       -e SPRING_CLOUD_CONFIG_SERVER_GIT_URI=file:///config \
       flytxt/spring-cloud-config-server
    
  • Configure through environment variables without a configuration file
    docker run -it -p 8888:8888 \
       -e SPRING_CLOUD_CONFIG_SERVER_GIT_URI=https://github.com/spring-cloud-samples/config-repo \
       flytxt/spring-cloud-config-server
    
Docker Pull Command
Owner
flytxt