2
0
mirror of https://github.com/acepanel/templates.git synced 2026-02-04 05:07:13 +08:00
Files
templates/tomcat/docker-compose.yml
2026-01-31 02:59:45 +08:00

23 lines
671 B
YAML

services:
tomcat:
image: tomcat:11.0.18-jre21
restart: unless-stopped
ports:
- ${TOMCAT_PORT_HTTP}:8080
volumes:
- "./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'
healthcheck:
test: [ "CMD-SHELL", "curl -fsSL http://localhost:8080 || exit 1" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- acepanel-network
networks:
acepanel-network:
external: true