Skip to content

本地docker部署问题 #114

Closed Answered by y-young
wolfling45 asked this question in Q&A
Discussion options

You must be logged in to vote

.env 中的 PORT 是 server 在容器中监听的端口,docker-compose.yml 中的 PORT 是 主机端口:容器端口,因此 .env 中的端口应和容器端口一致(保留默认 80即可),在容器外通过主机端口访问。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfling45
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
Converted from issue

This discussion was converted from issue #113 on March 20, 2025 06:46.