feat: 脚本调整
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
latest_jar_file=./projects/agt-cloud/agt-server/target/agt-server.jar
|
latest_jar_file=./projects/agt-cloud/agt-server/target/agt-server.jar
|
||||||
latest_dist_file=./projects/agt-web/apps/web-antd/dist.zip
|
latest_dist_file=./projects/agt-web/apps/web-antd/dist.zip
|
||||||
server_ip_50=192.168.9.50
|
server_ip_50=192.168.9.50
|
||||||
debs_rel_dir=/opt/agt/
|
debs_rel_dir=~/agt/
|
||||||
passwd=admin123
|
passwd=admin123
|
||||||
|
|
||||||
if [ -n "${latest_jar_file}" ]; then
|
if [ -n "${latest_jar_file}" ]; then
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ services:
|
|||||||
agt-mysql:
|
agt-mysql:
|
||||||
container_name: agt-mysql
|
container_name: agt-mysql
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: ./mysql
|
context: ./mysql
|
||||||
ports:
|
ports:
|
||||||
@@ -24,7 +25,8 @@ services:
|
|||||||
MYSQL_ROOT_PASSWORD: 123456
|
MYSQL_ROOT_PASSWORD: 123456
|
||||||
agt-redis:
|
agt-redis:
|
||||||
container_name: agt-redis
|
container_name: agt-redis
|
||||||
image: redis
|
image: redis:7.4.1
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: ./redis
|
context: ./redis
|
||||||
ports:
|
ports:
|
||||||
@@ -35,7 +37,8 @@ services:
|
|||||||
command: redis-server /home/agt/redis/redis.conf
|
command: redis-server /home/agt/redis/redis.conf
|
||||||
agt-nginx:
|
agt-nginx:
|
||||||
container_name: agt-nginx
|
container_name: agt-nginx
|
||||||
image: nginx
|
image: nginx:1.29.0
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: ./nginx
|
context: ./nginx
|
||||||
ports:
|
ports:
|
||||||
@@ -47,6 +50,7 @@ services:
|
|||||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||||
agt-server:
|
agt-server:
|
||||||
container_name: agt-server
|
container_name: agt-server
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: ./agt
|
context: ./agt
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
client_max_body_size 20M;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /home/agt/html;
|
root /home/agt/html;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM nginx
|
FROM nginx:1.29.0
|
||||||
# author
|
# author
|
||||||
MAINTAINER agt
|
MAINTAINER agt
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM redis
|
FROM redis:7.4.1
|
||||||
# author
|
# author
|
||||||
MAINTAINER ruoyi
|
MAINTAINER agt
|
||||||
|
|
||||||
# 挂载目录
|
# 挂载目录
|
||||||
VOLUME /home/ruoyi/redis
|
VOLUME /home/agt/redis
|
||||||
# 创建目录
|
# 创建目录
|
||||||
RUN mkdir -p /home/ruoyi/redis
|
RUN mkdir -p /home/agt/redis
|
||||||
# 指定路径
|
# 指定路径
|
||||||
WORKDIR /home/ruoyi/redis
|
WORKDIR /home/agt/redis
|
||||||
# 复制conf文件到路径
|
# 复制conf文件到路径
|
||||||
COPY ./conf/redis.conf /home/ruoyi/redis/redis.conf
|
COPY ./conf/redis.conf /home/agt/redis/redis.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user