You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
413 B
YAML

2 years ago
version: '3.4'
services:
nginx:
build:
context: ../
dockerfile: ./docker/nginx/Dockerfile
image: admin_net_web:1.2
ports:
- 81:80
restart: "always"
volumes:
- node_modules:/build/node_modules:rw
# network_mode: host #宿主网络与宿主机共享网络安全性不佳本地开发使用不支持windows仅支持Linux
volumes:
node_modules: