feat: 增加 Java 运行环境 (#1652)

This commit is contained in:
zhengkunwang
2024-07-10 22:20:19 +08:00
committed by GitHub
parent c24a629cbb
commit 3061aec27f
18 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
services:
java:
image: bitnami/java:${JAVA_VERSION}
container_name: ${CONTAINER_NAME}
working_dir: /app
volumes:
- ${CODE_DIR}:/app
- ./run.sh:/run.sh
- ./.env:/.env
command: bash /run.sh
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${JAVA_APP_PORT}
restart: on-failure:5
networks:
1panel-network:
external: true