Including Let’s Encrypt to Docker Compose for my venture in Spring Boot 2


Hiya All people,Google recommends this discussion board to me for questions on Spring Boot 2, Docker and Let’s Encrypt.

I want to publish my WebApp inbuilt Spring Boot 2.7.0, Java 1.15 and Tomcat 9 on Ubuntu 22.04 LTS (CPU Arm 64). I additionally want PostgreSQL, pgAdmin and Let’s Encrypt. I would love an environment friendly, dependable, secure and above all quick configuration.

I want to create all companies with Docker Compose. I managed to do all the things besides the Let’s Encrypt configuration. I’ve tried dozens of guides with no success. I’m additionally within the computerized renewal of the certificates.That is what I wrote:docker-compose.yaml
Code:
model: ‘3.9’

companies:
postgresql-postgis:

ports:
– 5432:5432


pgadmin:

ports:
– 80:80


java:
construct: ./java
picture: image-java-eb:v.1.0
container_name: container-java-eb
ports:
– 443:8443
volumes:
– kind: bind
supply: ./volumes/data-java
goal: /appfolder
depends_on:
– postgresql-postgis
– pgadmin
restart: on-failure
networks:
– eb

volumes:
data-postgresql:

networks:
eb:
Dockerfile
Code:
FROM openjdk:11.0.15-jre-slim
EXPOSE 8443
WORKDIR /appfolder
CMD [“java”, “-jar”, “/appfolder/springbootapp.jar”]

🔥 Hot and trending web hostings deals 🔥

HostingsCoupons.com - Web Hostings Coupons, Sales, Deals and Discounts
Logo