2
0
mirror of https://github.com/acepanel/templates.git synced 2026-02-03 21:07:14 +08:00

fix: tomcat

This commit is contained in:
2026-01-23 08:00:03 +08:00
parent b210a517b7
commit b28bca80ea
2 changed files with 6 additions and 11 deletions

View File

@@ -13,13 +13,6 @@ architectures:
- amd64
- arm64
environments:
TOMCAT_PASSWORD:
description:
en: Admin Password
zh_CN: 管理员密码
zh_TW: 管理員密碼
type: password
default: ""
TOMCAT_PORT_HTTP:
description:
en: HTTP Port

View File

@@ -1,13 +1,15 @@
services:
tomcat:
image: bitnami/tomcat:latest
image: tomcat:11.0.15-jre21
restart: unless-stopped
environment:
- TOMCAT_PASSWORD=${TOMCAT_PASSWORD}
ports:
- ${TOMCAT_PORT_HTTP}:8080
volumes:
- ./data:/bitnami/tomcat
- "./webapps:/usr/local/tomcat/webapps"
# Create your own tomcat-users.xml to enable the manager app
# - "./tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml"
entrypoint: |
bash -c 'cp -a webapps.dist/manager webapps/; exec catalina.sh run'
networks:
- acepanel-network
networks: