Skip to content

Commit 12a97b6

Browse files
committed
Update docker-compose.yml
1 parent 21806a6 commit 12a97b6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docker-compose.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# docker-compose up -d
2+
version: '3'
3+
services:
4+
myip:
5+
container_name: myip
6+
image: jason5ng32/myip:latest # my-app: x.x.x
7+
stdin_open: true # docker run -i 交互模式
8+
tty: true # docker run -t 终端模式
9+
restart: always # 重启策略 / on-failure:5 重启次数5次 / always 一直重启 / unless-stopped 除非停止 / no 从不重启
10+
ports:
11+
- "18966:18966"

0 commit comments

Comments
 (0)