Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
onedev:
image: 1dev/server:11.5.2
image: 1dev/server:11.5.3
container_name: ${CONTAINER_NAME}
restart: always
networks:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该问题在当前代码中未发现明显的语法错误或缺失信息,但考虑到版本变更(从1dev/server:xxxx到server:xxxx),可能存在以下几点修改建议:

  1. 需要确保与容器镜像相关联的服务名命名规范:使用大小写字母和数字混合的方式,例如"app_服务器", "service_test", 等等。这有助于避免服务名称冲突。

  2. 在更新docker run命令时,请注意指定准确的镜像ID,并将容器名称正确设置为项目中的实际变量${CONTAINER_NAME}或其他可替代形式。

另外,在正式部署之前进行上述更改并测试是至关重要的。

Expand Down