add tomcat

This commit is contained in:
xiagw 2019-08-25 17:24:17 +08:00
parent ca80dd1694
commit ae64a619b7
No known key found for this signature in database
GPG Key ID: AA79D99901C34E05
2 changed files with 20 additions and 1 deletions

View File

@ -1487,6 +1487,7 @@ services:
networks:
- backend
- frontend
### CONFLUENCE ################################################
confluence:
container_name: Confluence
@ -1500,4 +1501,18 @@ services:
depends_on:
- postgres
volumes:
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
### tomcat ####################################################
tomcat:
container_name: tomcat
image: tomcat:${TOMCAT_VERSION}
ports:
- "${TOMCAT_HOST_HTTP_PORT}:8080"
networks:
- frontend
- backend
volumes:
- ${DATA_PATH_HOST}/tomcat/webapps:/usr/local/tomcat/webapps
- ${DATA_PATH_HOST}/tomcat/logs:/usr/local/tomcat/logs
# restart: always

View File

@ -718,3 +718,7 @@ SONARQUBE_POSTGRES_HOST=postgres
SONARQUBE_POSTGRES_DB=sonar
SONARQUBE_POSTGRES_USER=sonar
SONARQUBE_POSTGRES_PASSWORD=sonarPass
### TOMCAT ################################################
TOMCAT_VERSION=8.5.43
TOMCAT_HOST_HTTP_PORT=8080