feat: 脚本调整
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
latest_jar_file=./projects/agt-cloud/agt-server/target/agt-server.jar
|
||||
latest_dist_file=./projects/agt-web/apps/web-antd/dist.zip
|
||||
server_ip_50=192.168.9.50
|
||||
debs_rel_dir=/opt/agt/
|
||||
debs_rel_dir=~/agt/
|
||||
passwd=admin123
|
||||
|
||||
if [ -n "${latest_jar_file}" ]; then
|
||||
|
||||
@@ -3,6 +3,7 @@ services:
|
||||
agt-mysql:
|
||||
container_name: agt-mysql
|
||||
image: mysql:5.7
|
||||
restart: always
|
||||
build:
|
||||
context: ./mysql
|
||||
ports:
|
||||
@@ -24,7 +25,8 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: 123456
|
||||
agt-redis:
|
||||
container_name: agt-redis
|
||||
image: redis
|
||||
image: redis:7.4.1
|
||||
restart: always
|
||||
build:
|
||||
context: ./redis
|
||||
ports:
|
||||
@@ -35,7 +37,8 @@ services:
|
||||
command: redis-server /home/agt/redis/redis.conf
|
||||
agt-nginx:
|
||||
container_name: agt-nginx
|
||||
image: nginx
|
||||
image: nginx:1.29.0
|
||||
restart: always
|
||||
build:
|
||||
context: ./nginx
|
||||
ports:
|
||||
@@ -47,6 +50,7 @@ services:
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
agt-server:
|
||||
container_name: agt-server
|
||||
restart: always
|
||||
build:
|
||||
context: ./agt
|
||||
dockerfile: dockerfile
|
||||
|
||||
@@ -13,6 +13,7 @@ http {
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
client_max_body_size 20M;
|
||||
|
||||
location / {
|
||||
root /home/agt/html;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 基础镜像
|
||||
FROM nginx
|
||||
FROM nginx:1.29.0
|
||||
# author
|
||||
MAINTAINER agt
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# 基础镜像
|
||||
FROM redis
|
||||
FROM redis:7.4.1
|
||||
# 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文件到路径
|
||||
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