mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-05 14:05:31 +02:00
Add Java runtime blueprint and metadata (#332)
* Add Java runtime blueprint and metadata Introduces a new Java blueprint with Docker Compose, template configuration, and logo for multi-version Java environments. Updates meta.json to register the Java runtime, supporting versions 8-21 for use cases like Minecraft servers and Spring Boot apps. * Move Java Runtime entry in meta.json Relocated the Java Runtime (Multi-Version) entry within meta.json for improved organization. No changes to the entry's content. * Update template.toml
This commit is contained in:
19
blueprints/java/docker-compose.yml
Normal file
19
blueprints/java/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
java-app:
|
||||
image: ghcr.io/pterodactyl/yolks:java_${JAVA_VERSION}
|
||||
restart: unless-stopped
|
||||
stdin_open: true
|
||||
tty: true
|
||||
volumes:
|
||||
- app-data:/home/container
|
||||
working_dir: /home/container
|
||||
environment:
|
||||
- STARTUP=${STARTUP_COMMAND}
|
||||
- SERVER_JARFILE=${SERVER_JARFILE}
|
||||
- JAVA_VERSION=${JAVA_VERSION}
|
||||
ports:
|
||||
- ${SERVER_PORT}
|
||||
user: container
|
||||
|
||||
volumes:
|
||||
app-data: {}
|
||||
Reference in New Issue
Block a user