Commit f300f599 by 周田

docs:注释

parent 3d50c514
version: '3'
services:
device_web_dockerfile:
# 通过 dockerfile 创建镜像
# build:
# context: .
# dockerfile: Dockerfile
# 如果使用上面的内容下面 image 就不需要了
image: device_web_dockerfile_compose
container_name: device_web_dockerfile_compose
container_name: device_web
tty: true
# 容器的网络模式,如果使用 host 模式,就不需要下面 ports 的内容
# ports 的内容是在默认的网络模式 bridge 的情况下设置的
network_mode: host
# ports:
# - "8080:8080"
# 文件映射,会将整个目录全部替换
# volumes:
# - .:/app
environment:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment