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.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
2fauth:
image: 2fauth/2fauth:5.4.1
image: 2fauth/2fauth:5.4.2
container_name: ${CONTAINER_NAME}
restart: always
ports:

Choose a reason for hiding this comment

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

该代码没有明显的错误或违规问题,但建议进行以下几个方面优化:

  1. 变量命名统一使用大写首字母的英文单词(如 $containerName));

  2. ports:中的内容替换为具体的端口数字和网络类型字符串,以确保可读性和准确性。

services:

  # 假设 $IMAGE 是需要使用的镜像名称
  authserver_service:
    deployer:
      type: docker-compose 
      service:
        image: $IMAGE   
        

这样可以保持一致且简洁的语言风格:

$IMAGE = '2fauth/2fauth:5.4.2';
services:
  
  authserver_service:
    deployer:
      type: docker-compose    
      service:
        image: $IMAGE

Expand Down
File renamed without changes.