Public Repository

Last pushed: 5 months ago
Short Description
Short description is empty for this repo.
Full Description

Configuration Server with Docker

This project is developed to create a docker machine to host configuration server.

Docker Project Specifications

  • JRE Version: openjkd/8-jre
  • Exposed ports:
    • 8888 - HTTP Port

Installation

You can download the image with this command line:

docker pull tpedocker/configuration

Docker-compose example (as a dependency image)

version: '2.1'
services:
  client-example:
    build: .
    ports:
      - "8080:8080"
    depends_on:
      config-server:
        condition: service_healthy
    links:
      - config-server
    environment:
      SPRING_PROFILES_ACTIVE: default
  config-server:
    image: tpedocker/configuration
    expose:
      - "8888"
    healthcheck:
      test: ["CMD", "curl", "-i", "http://localhost:8888"]
      interval: 10s
      timeout: 5s
      retries: 5
    volumes:
      - ./asset/config:/config

Standalone example

You can run this image like this:

docker run -dit --name configuration -p 8888:8888 -v ./{relative path to host config file directory}:/config tpedocker/configuration

Change {relative path to host config file directory} with your config property files directory.
This directory will be used as a volume corresponding to /config in the container.

In QA and PROD environments, be careful with config files. Client App specific properties must be in a sub-directory named with the app's name.

Docker Pull Command
Owner
tpedocker