version: '3'
services:
app:
#image: studywolf/tomcat:9.0.46-jdk8
image: chuangdun/tomcat:9.0.58-jdk8
container_name: "bk-server"
ports:
- "18081:8080"
- "9000:8080"
volumes:
- ./webapps/:/usr/local/tomcat/webapps/:z
- ./conf/server.xml:/usr/local/tomcat/conf/server.xml:ro
- ./data/logs/:/usr/local/tomcat/logs/:z
- ./data/logs/:/usr/local/web_project/logs/:z
#- ./image-build/lib/simhei.ttf:/usr/share/fonts/simhei.ttf
#- ./image-build/lib/simsun.ttc:/usr/share/fonts/simsun.ttc
#- ./image-build/lib/simfang.ttf:/usr/share/fonts/simfang.ttf
- ./image-build/lib/82811111Y26X7FTX.dat:/usr/local/web_project/ArcfaceSdk3/82811111Y26X7FTX.dat
- ./image-build/lib/libarcsoft_face.so:/usr/local/web_project/ArcfaceSdk3/libarcsoft_face.so
- ./image-build/lib/libarcsoft_face_engine.so:/usr/local/web_project/ArcfaceSdk3/libarcsoft_face_engine.so
- ./image-build/lib/libarcsoft_face_engine_jni.so:/usr/local/web_project/ArcfaceSdk3/libarcsoft_face_engine_jni.so
- ./image-build/hklib/libAudioRender.so:/usr/lib64/libAudioRender.so
- ./image-build/hklib/libcrypto.so:/usr/lib64/libcrypto.so
- ./image-build/hklib/libcrypto.so.1.0.0:/usr/lib64/libcrypto.so.1.0.0
- ./image-build/hklib/libopenal.so.1:/usr/lib64/libopenal.so.1
- ./image-build/hklib/libHCCore.so:/usr/lib64/libHCCore.so
- ./image-build/hklib/libhcnetsdk.so:/usr/lib64/libhcnetsdk.so
- ./image-build/hklib/libhpr.so:/usr/lib64/libhpr.so
- ./image-build/hklib/libNPQos.so:/usr/lib64/libNPQos.so
- ./image-build/hklib/libPlayCtrl.so:/usr/lib64/libPlayCtrl.so
- ./image-build/hklib/libssl.so:/usr/lib64/libssl.so
- ./image-build/hklib/libSuperRender.so:/usr/lib64/libSuperRender.so
- ./image-build/hklib/libz.so:/usr/lib64/libz.so
- ./image-build/hklib/HCNetSDK_Log_Switch.xml:/usr/lib64/HCNetSDK_Log_Switch.xml
- ./image-build/hklib/HCNetSDKCom:/usr/lib64/HCNetSDKCom
mac_address: 02:42:ac:18:00:02
environment:
#- TZ=Asia/Shanghai
- JAVA_OPTS=-server -Xms128m -Xmx1g -Djava.security.egd=file:/dev/./urandom
#- LD_LIBRARY_PATH=/usr/local/tomcat/native-jni-lib;/usr/local/tomcat/native-jni-lib/HCNetSDKCom
restart: always
command: ["catalina.sh", "run"]
logging:
driver: 'json-file'
options:
max-size: '12m'
max-file: '5'