fix: 更新Docker的配置

This commit is contained in:
xiaoguangbin 2024-01-16 16:01:02 +08:00
parent bf7aa121db
commit 78840a6470
10 changed files with 314 additions and 97 deletions

View File

@ -0,0 +1,15 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /armd-abnormal-alarm-cloud
WORKDIR /armd-abnormal-alarm-cloud
EXPOSE 7006
ADD armd-abnormal-alarm-start-3.5.1.jar ./
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-abnormal-alarm-start-3.5.1.jar

View File

@ -0,0 +1,24 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY --from=armd-jdk64 /usr/local/jdk/lib/ /usr/local/jdk/lib/
RUN mkdir -p /armd-auto-process
WORKDIR /armd-auto-process
EXPOSE 7004
ADD armd-auto-process-start-3.5.1.jar ./
COPY setup.tar ./
RUN ls ./
RUN tar -C ./ -xvf ./setup.tar && \
rm ./setup.tar
ENV LD_LIBRARY_PATH /usr/local/jdk/lib
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-auto-process-start-3.5.1.jar

View File

@ -1,15 +1,15 @@
FROM anapsix/alpine-java:8_server-jre_unlimited
FROM armd-jdk64:latest
MAINTAINER jeecgos@163.com
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /jeecg-cloud-gateway
RUN mkdir -p /armd-cloud-gateway
WORKDIR /jeecg-cloud-gateway
WORKDIR /armd-cloud-gateway
EXPOSE 9999
ADD ./target/jeecg-cloud-gateway-3.5.1.jar ./
ADD armd-cloud-gateway-3.5.1.jar ./
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-gateway-3.5.1.jar
CMD sleep 1;java-Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-cloud-gateway-3.5.1.jar

View File

@ -1,25 +1,23 @@
#FROM anapsix/alpine-java:8_server-jre_unlimited
FROM openjdk:8
FROM jdk64:latest
MAINTAINER jeecgos@163.com
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /jeecg-cloud-nacos
RUN mkdir -p /armd-cloud-nacos
WORKDIR /jeecg-cloud-nacos
WORKDIR /armd-cloud-nacos
EXPOSE 8848
ENV DB_URL=""
ENV DB_USER=""
ENV DB_PASSWORD=""
ENV DB_PLATFORM=""
ENV SERVER_PORT=""
ENV DB_URL="jdbc:postgresql://192.168.8.103:5432/nacos"
ENV DB_USER="postgres"
ENV DB_PASSWORD="123456"
ENV DB_PLATFORM="postgresql"
ENV SERVER_PORT="8848"
EXPOSE $SERVER_PORT
ADD ./target/jeecg-cloud-nacos-3.5.1.jar ./
ADD armd-cloud-nacos-3.5.1.jar ./
CMD sleep 5;java -DSERVER_PORT=$SERVER_PORT -DDB_URL=$DB_URL -DDB_USER=$DB_USER -DDB_PASSWORD=$DB_PASSWORD -DDB_PLATFORM=$DB_PLATFORM -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-nacos-3.5.1.jar
CMD sleep 5;java -DSERVER_PORT=$SERVER_PORT -DDB_URL=$DB_URL -DDB_USER=$DB_USER -DDB_PASSWORD=$DB_PASSWORD -DDB_PLATFORM=$DB_PLATFORM -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-cloud-nacos-3.5.1.jar

View File

@ -0,0 +1,15 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /armd-log-manage
WORKDIR /armd-log-manage
EXPOSE 7005
ADD armd-log-manage-start-3.5.1.jar ./
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-log-manage-start-3.5.1.jar

View File

@ -0,0 +1,26 @@
FROM armd-jdk:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 将共享库复制到容器中
COPY --from=armd-jdk /usr/local/jdk/lib/ /usr/local/jdk/lib/
RUN mkdir -p /armd-spectrum-analysis
WORKDIR /armd-spectrum-analysis
EXPOSE 7007
ADD armd-spectrum-analysis-start-3.5.1.jar ./
# 将所有配置文件复制到armd-spectrum-analysis同级目录并解压
COPY setup.tar ./
RUN ls ./
RUN tar -C ./ -xvf ./setup.tar && \
rm ./setup.tar
# 设置LD_LIBRARY_PATH环境变量
ENV LD_LIBRARY_PATH /usr/local/jdk/lib
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-spectrum-analysis-start-3.5.1.jar

View File

@ -0,0 +1,21 @@
FROM armd-jdk64:latest
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /armd-station-operation
WORKDIR /armd-station-operation
EXPOSE 7002
ADD armd-station-operation-start-3.5.1.jar ./
# 将所有配置文件复制到armd-spectrum-analysis同级目录并解压
COPY setup.tar ./
RUN ls ./
RUN tar -C ./ -xvf ./setup.tar && \
rm ./setup.tar
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-station-operation-start-3.5.1.jar

View File

@ -1,15 +1,15 @@
FROM anapsix/alpine-java:8_server-jre_unlimited
FROM armd-jdk64:latest
MAINTAINER jeecgos@163.com
MAINTAINER armd@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /jeecg-system-cloud
RUN mkdir -p /armd-system-cloud
WORKDIR /jeecg-system-cloud
WORKDIR /armd-system-cloud
EXPOSE 7001
ADD ./target/jeecg-system-cloud-start-3.5.1.jar ./
ADD armd-system-cloud-start-3.5.1.jar ./
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-cloud-start-3.5.1.jar
CMD sleep 1;java -Xms512m -Xmx1g -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar armd-system-cloud-start-3.5.1.jar

View File

@ -1,31 +1,63 @@
version: '2'
services:
jeecg-boot-mysql:
jdk64:
build:
context: ../db
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
restart: always
container_name: jeecg-boot-mysql
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
--max_allowed_packet=128M
--default-authentication-plugin=caching_sha2_password
ports:
- 3306:3306
context: ./jdk64
container_name: jdk64
profiles:
- jdk64
jeecg-boot-redis:
image: redis:5.0
armd-redis:
build:
context: ./redis
ports:
- 6379:6379
restart: always
container_name: jeecg-boot-redis
hostname: jeecg-boot-redis
container_name: armd-redis
hostname: armd-redis
restart: on-failure
environment:
- TZ=Asia/Shanghai
extra_hosts:
- "armd-redis:172.18.0.2"
profiles:
- redis
armd-vue:
build:
context: ./nginx
ports:
- 443:443
restart: on-failure
environment:
- TZ=Asia/Shanghai
container_name: armd-vue
profiles:
- nginx
volumes:
- "/home/rmsops/nginx/vue-config:/usr/share/nginx/html/static"
- "/home/rmsops/nginx/map:/usr/share/nginx/map"
- "/home/rmsops/nginx/logs:/etc/nginx/logs/"
- "/home/rmsops/nginx/config:/etc/nginx/conf.d/"
# jeecg-boot-mysql:
# build:
# context: ../db
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_ROOT_HOST: '%'
# TZ: Asia/Shanghai
# restart: always
# container_name: jeecg-boot-mysql
# command:
# --character-set-server=utf8mb4
# --collation-server=utf8mb4_general_ci
# --explicit_defaults_for_timestamp=true
# --lower_case_table_names=1
# --max_allowed_packet=128M
# --default-authentication-plugin=caching_sha2_password
# ports:
# - 3306:3306
# jeecg-boot-rabbitmq:
# image: rabbitmq:3.7.7-management

View File

@ -1,72 +1,158 @@
version: '2'
services:
jeecg-boot-nacos:
nacos:
container_name: armd-nacos
hostname: armd-nacos
restart: always
build:
context: ./jeecg-cloud-nacos
context: ./nacos
ports:
- 8848:8848
profiles:
- nacos
environment:
- SERVER_PORT=8848
- DB_URL=jdbc:postgresql://182.92.183.230:5432/nacos
- DB_USER=temp
- DB_PASSWORD=123456
- DB_PLATFORM=postgresql
container_name: jeecg-boot-nacos
hostname: jeecg-boot-nacos
extra_hosts:
- "armd-nacos:192.168.31.23"
jeecg-boot-system:
depends_on:
- jeecg-boot-nacos
armd-gateway:
container_name: armd-gateway-start
hostname: armd-gateway
# depends_on:
# - armd-nacos
profiles:
- gateway
build:
context: ./jeecg-system-cloud-start
container_name: jeecg-system-start
hostname: jeecg-boot-system
context: ./gateway
ports:
- 9999:9999
restart: on-failure
environment:
- TZ=Asia/Shanghai
extra_hosts:
- "armd-gateway:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-gateway/logs"
# jeecg-boot-demo:
# depends_on:
# - jeecg-boot-nacos
# build:
# context: ./jeecg-demo-cloud-start
# container_name: jeecg-demo-start
# hostname: jeecg-boot-demo
# restart: on-failure
# environment:
# - TZ=Asia/Shanghai
armd-system:
container_name: armd-system
hostname: armd-system
profiles:
- service
build:
context: ./system
ports:
- 7001:7001
restart: on-failure
environment:
- TZ=Asia/Shanghai
extra_hosts:
- "armd-system:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-system-cloud/logs"
jeecg-boot-gateway:
armd-station-operation:
container_name: armd-station-operation
hostname: armd-station-operation
depends_on:
# - armd-nacos
- armd-system
profiles:
- service
restart: on-failure
build:
context: ./jeecg-cloud-gateway
context: ./station-operation
ports:
- 9999:9999
depends_on:
- jeecg-boot-nacos
- jeecg-boot-system
container_name: jeecg-boot-gateway
hostname: jeecg-boot-gateway
- 7002:7002
extra_hosts:
- "armd-station-operation:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-station-operation/logs"
armd-web-statistics:
container_name: armd-web-statistics
hostname: armd-web-statistics
depends_on:
- armd-system
profiles:
- service
restart: on-failure
build:
context: ./web-statistics
ports:
- 7003:7003
extra_hosts:
- "armd-web-statistics:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-web-statistics/logs"
armd-abnormal-alarm:
container_name: armd-abnormal-alarm
hostname: armd-abnormal-alarm
depends_on:
- armd-system
profiles:
- service
restart: on-failure
build:
context: ./abnormal-alarm
ports:
- 7005:7005
extra_hosts:
- "armd-abnormal-alarm:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-abnormal-alarm/logs"
armd-log-manage:
container_name: armd-log-manage
hostname: armd-log-manage
depends_on:
- armd-system
profiles:
- service
restart: on-failure
build:
context: ./log-manage
ports:
- 7006:7006
extra_hosts:
- "armd-log-manage:192.168.31.23"
volumes:
- "/home/rmsops/armd-logs:/armd-log-manage/logs"
armd-spectrum-analysis:
restart: on-failure
build:
context: ./spectrum-analysis
ports:
- 7007:7007
profiles:
- service
depends_on:
- armd-system
container_name: armd-spectrum-analysis
hostname: armd-spectrum-analysis
extra_hosts:
- "armd-spectrum-analysis:127.0.0.1"
auto-process:
restart: on-failure
build:
context: ./auto-process
ports:
- 7004:7004
profiles:
- auto-process
container_name: auto-process
hostname: armd-auto-process
extra_hosts:
- "armd-auto-process:127.0.0.1"
volumes:
- "/home/rmsops/ftp:/armd-auto-process/ftp"
- "/home/rmsops/armd-logs:/armd-auto-process/logs"
# jeecg-boot-sentinel:
# restart: on-failure
# build:
# context: ./jeecg-visual/jeecg-cloud-sentinel
# ports:
# - 9000:9000
# depends_on:
# - jeecg-boot-nacos
# - jeecg-boot-demo
# - jeecg-boot-system
# - jeecg-boot-gateway
# container_name: jeecg-boot-sentinel
# hostname: jeecg-boot-sentinel
#
# jeecg-boot-xxljob:
# build:
# context: ./jeecg-visual/jeecg-cloud-xxljob
# ports:
# - 9080:9080
# container_name: jeecg-boot-xxljob
# hostname: jeecg-boot-xxljob