version: '3'
services:
admin_smart:
container_name: admin_smart
restart: always
privileged: true
#build:
# context: .
# dockerfile: admin_Dockerfile
image: java:latest
ports:
- "15080:15080"
environment:
TZ: Asia/Shanghai
volumes:
- /u01/smart-seal/admin-gateway:/smart_admin
working_dir: /smart_admin
entrypoint:
- java
- -jar
- -server
- -Xms2g
- -Xmx2g
- -XX:MetaspaceSize=256m
- -XX:+UseConcMarkSweepGC
- -XX:+PrintGCDetails
- -XX:+PrintGCDateStamps
- -Xloggc:/smart_admin/logs/gc/gc-%t.log
- -XX:+HeapDumpOnOutOfMemoryError
- -XX:HeapDumpPath=/smart_admin/logs
- -Djava.security.egd=file:/dev/./urandom
- -DLOG_HOME=/smart_admin/logs
- /smart_admin/smart-seal-admin-gateway-3.1.2.jar
java_docker_compose.yml
于 2024-03-01 10:27:03 首次发布