mirror of
https://github.com/acepanel/templates.git
synced 2026-02-03 21:07:14 +08:00
fix: tomcat
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user