|
|
@@ -35,4 +35,31 @@ services:
|
|
|
ports:
|
|
|
- 8080:8080
|
|
|
networks:
|
|
|
- - zsElectric-boot
|
|
|
+ - zsElectric-boot
|
|
|
+
|
|
|
+ zsElectric-app:
|
|
|
+ image: openjdk:17-jdk-alpine
|
|
|
+ container_name: zsElectric-app
|
|
|
+ restart: unless-stopped
|
|
|
+ extra_hosts:
|
|
|
+ - "host.docker.internal:host-gateway"
|
|
|
+ environment:
|
|
|
+ - TZ=Asia/Shanghai
|
|
|
+ - JAVA_OPTS=-Xmx512m -Xms256m
|
|
|
+ - LANG=en_US.UTF-8
|
|
|
+ volumes:
|
|
|
+ - /home/zsElectric-boot/zsElectric-boot.jar:/app.jar
|
|
|
+ command: >
|
|
|
+ sh -c "
|
|
|
+ apk update &&
|
|
|
+ apk add --no-cache fontconfig ttf-dejavu ttf-liberation ttf-freefont &&
|
|
|
+ mkdir -p /usr/share/fonts/truetype/custom &&
|
|
|
+ java -jar /app.jar --server.port=8989
|
|
|
+ "
|
|
|
+ ports:
|
|
|
+ - 8989:8989
|
|
|
+ networks:
|
|
|
+ - zsElectric-boot
|
|
|
+ depends_on:
|
|
|
+ - minio
|
|
|
+ - xxl-job-admin
|