diff --git a/docker-compose.yml b/docker-compose.yml index 35e629b..395669a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,6 +53,10 @@ services: - 'host.docker.internal:host-gateway' ports: - '${APP_PORT}:${APP_PORT}' + volumes: + # 将容器中huaxin-admin/dist文件夹映射到本地的dist文件夹 + - ./public:/huaxin-admin/public + - ./node_modules:/huaxin-admin/node_modules # 当前服务启动之前先要把depends_on指定的服务启动起来才行 depends_on: - mysql