change docker-compose restart policy to unless-stopped.

This commit is contained in:
licsber 2025-02-11 16:40:13 +08:00
parent 1b83527ac7
commit 1dcc9e6562
Signed by: licsber
GPG Key ID: 9D7FB88B13C88D84

View File

@ -2,7 +2,7 @@ services:
MyFakeSSH: MyFakeSSH:
build: . build: .
image: registry.cn-beijing.aliyuncs.com/licsber/myfakessh:latest image: registry.cn-beijing.aliyuncs.com/licsber/myfakessh:latest
restart: always restart: unless-stopped
container_name: myfakessh container_name: myfakessh
command: /log command: /log
volumes: volumes:
@ -10,4 +10,4 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
ports: ports:
- '22:22' - "22:22"