|
@@ -1,5 +1,34 @@
|
|
|
version: '3'
|
|
version: '3'
|
|
|
services:
|
|
services:
|
|
|
|
|
+ weba_mvc:
|
|
|
|
|
+ # 增加安装libgdiplus
|
|
|
|
|
+ # image: alpine
|
|
|
|
|
+
|
|
|
|
|
+ build:
|
|
|
|
|
+ context: ./dockfile
|
|
|
|
|
+ dockerfile: java17.Dockfile
|
|
|
|
|
+ container_name: javacontainer
|
|
|
|
|
+ platform: linux/arm64/v8
|
|
|
|
|
+ # restart: always
|
|
|
|
|
+ # depends_on:
|
|
|
|
|
+ # - db
|
|
|
|
|
+ # environment:
|
|
|
|
|
+ # - ASPNETCORE_ENVIRONMENT=Production
|
|
|
|
|
+ # - 'TZ=Asia/Shanghai'
|
|
|
|
|
+ networks:
|
|
|
|
|
+ - abnet
|
|
|
|
|
+ #使用links后在站点配置文件中直接使用db可以访问到mysql
|
|
|
|
|
+ # links:
|
|
|
|
|
+ # - db
|
|
|
|
|
+ # working_dir: /www/weba/
|
|
|
|
|
+ working_dir: /www/adminap/
|
|
|
|
|
+ volumes:
|
|
|
|
|
+ - '/Users/abpasser/AB/ABGit/docker-compose/ABServer-Java17-Tengine-Mysql5.7-Redis/webroot/weba/:/www/weba/'
|
|
|
|
|
+ - '/Users/abpasser/AB/ABGit/docker-compose/ABServer-Java17-Tengine-Mysql5.7-Redis/webroot/adminap/:/www/adminap/'
|
|
|
|
|
+ # - '/home/ABServer/weblog/weba/err.log:/var/log/website.err.log'
|
|
|
|
|
+ # entrypoint: ["java","-Djava.security.egd=file:/dev/./urandom", "-Dspring.config.location=application.yml", "-jar", "adminap-0.0.1.jar"]
|
|
|
|
|
+ entrypoint: [ "mvn","dependency:go-offline","clean","package","spring-boot:repackage" ]
|
|
|
|
|
+
|
|
|
kxs-mysql:
|
|
kxs-mysql:
|
|
|
build:
|
|
build:
|
|
|
context: ./db
|
|
context: ./db
|