Skip to content

dock部署怎么修改默认的80端口 #1213

Answered by icyleaf
hzlgit asked this question in Q&A
Discussion options

You must be logged in to vote

使用 docker 部署修改 -p {port}:80

使用 docker-compose 部署修改:

    ports:
-      - "80:80"
+      - "{port}:80"

那上面 {port} 更换成你想要的端口号。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by icyleaf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants