Sign inSign up

devakash/supportsystem

By devakash

•Updated almost 6 years ago

Support system micro service: a simple demo size Bugzilla kind of application to track the issues.

Image
0

733

devakash/supportsystem repository overview

⁠ SupportSystem application : Micro-Service with in memory H2 database

⁠ Default port is 8080

Environment Variable :

  • eureka.client.serviceUrl.defaultZone
  • default value is : http://localhost:8762/eureka
  • server.port
  • default value is : 8080

This micro-service requires one eureka server to be up and running. While running SupportSystem container please use eureka.client.serviceUrl.defaultZone flag to pass the Netflix server URL

Swagger UI is available at http://localhost:8080/support/swagger-ui.html⁠ : please change the port to mapped host port.

On startup, this container creates the necessary tables in the database. Populates the table with initial data.

⁠Email Notification
This micro-service also uses an inbuilt email client (Gmail ) to send emails to users who raise a bug.

For SMTP to function smoothly please provide the environment variable email.fromemail& email.password with appropriate values. Also make sure https://myaccount.google.com/u/2/lesssecureapps⁠ is enabled.

⁠ Docker-Compose

Please use the below sample docker-compose.yml file to create a eureka-server & supportsystem containers talking to each other.

In command prompt run: docker-compose up -d and access netflix-ui on the browser just type http://localhost⁠, to access the support-system API use http://localhost:8080/support/getIssueStatus⁠

⁠ docker-compose.yml
eureka-server:
    image: devakash/eureka:latest
    ports:
      - '80:8762' '80:8762'
    restart: always

supportsystem: image: devakash/supportsystem:latest ports: - '8080:8080''8080:8080' environment: - eureka.client.serviceUrl.defaultZone=http://eureka-server:8762/eureka⁠ - email.fromemail=[email protected]⁠ - email.password=emailpassword links: - eureka-server restart: always

Tag summary

Content type

Image

Digest

Size

125.1 MB

Last updated

over 6 years ago

docker pull devakash/supportsystem