This is a fork of Baioc's Padn't Thanks @baioc for this amazing repo!
Padn't is a Dontpad clone implemented with Java Spring Boot.
build the app
mvn clean package
docker compose up -d --build
Dockerfile
FROM openjdk:24-oraclelinux9
MAINTAINER baeldung.com
COPY target/padnt-0.2.0-SNAPSHOT.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
docker-compose.yml
services:
message-server:
image: padnt:1.0.0
build:
context: .
ports:
- "8080:8080"
volumes:
- ./logs:/logs/tomcat # Persist Tomcat logs
- ./database:/database
restart: always
container_name: padnt
Name | Value |
---|---|
SERVER_PORT |
8080 |
LOGGING_LEVEL_ROOT |
INFO |
LOGGING_LEVEL_BAIOC_PADNT |
${LOGGING_LEVEL_ROOT} |
JAVA_OPTS |
'' |
NOTE: JAVA_OPTS
can be used to override anything else on application.properties, for instance.