version: '3.8' services: jaxws-service: build: context: . dockerfile: Dockerfile container_name: jaxws-hello-world ports: - "8080:8080" environment: - CATALINA_OPTS=-Xms256m -Xmx512m - TZ=UTC volumes: # Optional: Mount logs directory for debugging - ./logs:/usr/local/tomcat/logs # Mount database file to root folder - ./loan_app.db:/usr/local/tomcat/loan_app.db restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/jaxws-hello-world/services/hello?wsdl"] interval: 30s timeout: 10s retries: 3 start_period: 40s