This commit is contained in:
LORENZO\pacio 2025-07-16 17:04:45 +02:00
parent fb56092e47
commit 1afab2b6cb
2 changed files with 9 additions and 29 deletions

View File

@ -0,0 +1,9 @@
services:
apache:
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
network_mode: host
restart: always

View File

@ -1,29 +0,0 @@
#installazione singolo tenant con apache incluso
services:
tomcat:
build:
context: ./tomcat
dockerfile: Dockerfile
args:
#USARE UN UTENTE DEDICATO CON GUID ALTO, 1000 è usato nell'immagine standard tomcat
USER_ID: 20000
GROUP_ID: 20000
USERNAME: adhoc
GROUPNAME: adhoc
network_mode: host
volumes:
- ./tomcat/webapps:/usr/local/tomcat/webapps
- ./tomcat/logs:/usr/local/tomcat/logs
environment:
JAVA_OPTS: "-Dfile.encoding=UTF-8 -Xms512m -Xmx4g -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=1g -Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true"
CATALINA_OPTS: "-XX:CompressedClassSpaceSize=512m -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -Xss2m -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+AlwaysPreTouch -XX:+UseStringDeduplication -XX:ParallelGCThreads=4 -XX:ConcGCThreads=2 -XX:+DisableExplicitGC"
TZ: "Europe/Rome"
restart: always
apache:
build:
context: ./apache
dockerfile: Dockerfile
network_mode: host
depends_on:
- tomcat
restart: always