Sign inSign up

hftm/blog-example-api

By hftm

•Updated about 5 years ago

Sample API for a Blog-Frontend

Image
0

100K+

hftm/blog-example-api repository overview

⁠How to use this image

docker run --name some-blog-api --network some-network -d hftm/blog-example-api:no-keycloak

Use the following Environment-Variables to Connect the a MySQL-Database:

  • -e QUARKUS_DATASOURCE_USERNAME=...
  • -e QUARKUS_DATASOURCE_PASSWORD=...
  • -e QUARKUS_DATASOURCE_JDBC_URL=...

⁠Example Setup with DB

docker network create blog-nw
docker run --name blog1-mariadb --network=blog-nw -e MYSQL_ROOT_PASSWORD=vs4tw -e MYSQL_USER=dbuser -e MYSQL_PASSWORD=dbuser -e MYSQL_DATABASE=blog1 -d mariadb:10.6.2
docker run --name blog-api --network=blog-nw -p 8080:8080 -e QUARKUS_DATASOURCE_USERNAME=dbuser -e QUARKUS_DATASOURCE_PASSWORD=dbuser -e QUARKUS_DATASOURCE_JDBC_URL=jdbc:mariadb://blog1-mariadb:3306/blog1 -d hftm/blog-example-api:no-keycloak

⁠Usage

Access the Swagger-UI to find out how to work with the API: http://localhost:8080/swagger-ui⁠

Tag summary

Content type

Image

Digest

Size

86.1 MB

Last updated

about 5 years ago

docker pull hftm/blog-example-api:no-keycloak