Files
templates/blueprints/java/docker-compose.yml
devdamo 89528e7b8a 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
2025-09-04 00:00:55 -06:00

19 lines
430 B
YAML

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: {}