Category : spring

I’m new to Docker. I’m build a Spring Boot Application deploying on Docker. Here is my example docker-compose, version: "3" services: user: container_name: user image: user-service build: context: user-api/ ports: – "3001:8000" restart: always volumes: – /home/ubuntu/logs/user_service:/opt/app/logs networks: – api_network cms: container_name: cms image:cms-service build: context: cms-service/ ports: – "3003:8000" restart: always volumes: – /home/ubuntu/logs/cms_service:/opt/app/logs ..

Read more

I’m new to Docker. I’m build a Spring Boot Application deploying on Docker. Here is my example docker-compose.yml: version: "3" services: user: container_name: user image: user-service build: context: user-api/ ports: – "3001:8000" restart: always volumes: – /home/ubuntu/logs/user_service:/opt/app/logs networks: – api_network cms: container_name: cms image:cms-service build: context: cms-service/ ports: – "3003:8000" restart: always volumes: – /home/ubuntu/logs/cms_service:/opt/app/logs ..

Read more

I’m running a spring boot application in the background as an API server, but I cannot access it from localhost:7000. INFO 1 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 7000 (http) with context path ” INFO 1 — [ main] c.e.farmfresh.FarmfreshApplication : Started FarmfreshApplication in 8.281 seconds (JVM running for 9.021) Here is ..

Read more

I have a Spring project that runs in Docker, back, web are launched through the docker-compose file, minio is also there, I don’t know how to set up compression, I tried all the different options, it doesn’t work. Please help) This is my Docker-compose file environment: MINIO_ACCESS_KEY: minio MINIO_SECRET_KEY: miniominio MINIO_COMPRESS: on MINIO_COMPRESS_EXTENSIONS: MINIO_COMPRESS_MIME_TYPES: or ..

Read more

In our application we have a set of spring configuration files that we specify as part of the contextConfigLocation like below. <context-param> <param-name>contextConfigLocation</param-name> <param-value>conf/services/services1.xml,conf/services/services2.xml</param-value> </context-param> The application war is packaged within a docker image and at times there is a need to customize/change the spring configuration xml which requires the docker image to be rebuilt ..

Read more

I am using spring boot with docker. When i Run docker-compose.yaml file it shows bellow error in mysql: Caused by: java.net.UnknownHostException: mysql at java.base/java.net.InetAddress$CachedAddresses.get(Unknown Source) ~[na:na] at java.base/java.net.InetAddress.getAllByName0(Unknown Source) ~[na:na] at java.base/java.net.InetAddress.getAllByName(Unknown Source) ~[na:na] at java.base/java.net.InetAddress.getAllByName(Unknown Source) ~[na:na] at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:132) ~[mysql-connector-java-8.0.25.jar:8.0.25] at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63) ~[mysql-connector-java-8.0.25.jar:8.0.25] I have user bellow like: In docker-compose.yaml file I have use ..

Read more