mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 18:42:49 +08:00
feat: 优化docker使用说方式和说明
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
services:
|
||||
ulthon_admin:
|
||||
# image: ulthon/ulthon_admin:v1
|
||||
build:
|
||||
context: . # Dockerfile 所在的目录
|
||||
dockerfile: Dockerfile # Dockerfile 的名称
|
||||
restart: always
|
||||
ports:
|
||||
- "88:80" # HTTP
|
||||
volumes:
|
||||
# - ./:/var/www/html # 开发模式或者直接分发代码可以去掉注释并将下面的目录增加注释
|
||||
- ./runtime:/var/www/html/runtime
|
||||
- ./public/storage:/var/www/html/public/storage
|
||||
- ./public/build:/var/www/html/public/build
|
||||
- ./storage:/var/www/html/storage
|
||||
ulthon_admin:
|
||||
# 正式环境中,您应当构建一个完整镜像,使用镜像名称或id运行,不要使用dockerfile
|
||||
# image: ulthon/ulthon_admin:v1
|
||||
build:
|
||||
context: . # Dockerfile 所在的目录
|
||||
dockerfile: Dockerfile # Dockerfile 的名称
|
||||
restart: always
|
||||
ports:
|
||||
- "88:80" # HTTP
|
||||
volumes:
|
||||
- ./:/var/www/html # 直接分发代码可以去掉注释并将下面的目录增加注释
|
||||
# - ./runtime:/var/www/html/runtime
|
||||
# - ./public/storage:/var/www/html/public/storage
|
||||
# - ./public/build:/var/www/html/public/build
|
||||
# - ./storage:/var/www/html/storage
|
||||
|
||||
Reference in New Issue
Block a user