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
renovate[bot] e894583fc1 chore(deps): update docker images (minor/patch/digest) (#19)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 09:46:37 +00:00

23 lines
669 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