|
@@ -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
|
|
|
#启动容器后执行的命令
|