Răsfoiți Sursa

配置文件修改

chenzl 10 luni în urmă
părinte
comite
d48b62a416
2 a modificat fișierele cu 7 adăugiri și 9 ștergeri
  1. 3 5
      prod-compose.yml
  2. 4 4
      test-compose.yml

+ 3 - 5
prod-compose.yml

@@ -1,7 +1,7 @@
 version: "3"
 services:
 
-  file-preview:
+  file-view:
     # 指定容器名称
     container_name: file-view
     # 重启机制
@@ -13,8 +13,6 @@ services:
     image: file-view:1.0.0
     volumes:
       # 挂载日志 -v A:B ,A指宿主机位置,B指容器位置
-      - /usr/local/youxianxin/service/log/file-preview:/logback
+      - /usr/local/youxianxin/service/log/file-view:/logback
       # 指定容器时间为宿主机时间
-      - /etc/localtime:/etc/localtime
-    #启动容器后执行的命令
- 
+      - /etc/localtime:/etc/localtime

+ 4 - 4
test-compose.yml

@@ -1,19 +1,19 @@
 version: "3"
 services:
 
-  file-preview:
+  file-view:
     # 指定容器名称
-    container_name: file-preview
+    container_name: file-view
     # 重启机制
     restart: always
     network_mode: "host"
     build:
       context: ./         # 指定设定上下文根目录,然后以该目录为准寻找Dockerfile
       dockerfile: DockerfileTest  #DockerFile 真正所在位置
-    image: file-preview:1.0.0
+    image: file-view:1.0.0
     volumes:
       # 挂载日志 -v A:B ,A指宿主机位置,B指容器位置
-      - /usr/local/youxianxin/service/log/file-preview:/logback
+      - /usr/local/youxianxin/service/log/file-view:/logback
       # 指定容器时间为宿主机时间
       - /etc/localtime:/etc/localtime
     #启动容器后执行的命令