version: '2'
services:
java:
tty: true # Enables debugging capabilities when attached to this container.
image: docker.io/bitnami/java:17
command: ["tail", "-f", "/dev/null"] # To keep the container running
ports:
- 8080:8080
volumes:
- .:/app