[{"data":1,"prerenderedAt":56},["ShallowReactive",2],{"content-query-gq1OCG0Sbo":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"tags":11,"body":15,"_type":50,"_id":51,"_source":52,"_file":53,"_stem":54,"_extension":55},"/zh/blog/gitea-1panel-docker","blog",false,"","1panel部署gitea, 安装后无法访问","第一步: 从1panel应用商店安装gitea, 端口默认是3000, 我改成了8000. 第二步: 访问'服务器IP:8000', gitea的初次访问需要安装, 其实就是填写配置信息. 填完后提交服务会重启, 然后就无法访问了.","2026-05-23 08:37",[12,13,14],"gitea","1panel","docker",{"type":16,"children":17,"toc":47},"root",[18,25],{"type":19,"tag":20,"props":21,"children":22},"element","p",{},[23],{"type":24,"value":9},"text",{"type":19,"tag":20,"props":26,"children":27},{},[28,30,37,39,45],{"type":24,"value":29},"问题出在第二步, 第一步端口写8000, 实际上是配置docker容器的端口映射, 把外部的8000端口映射到容器的3000端口. 然后第二步也需要填端口, 依据惯性填8000, 但是就访问不了了. 解决方法是, 第二步填默认的3000端口, 已经安装好的可以修改",{"type":19,"tag":31,"props":32,"children":34},"code",{"className":33},[],[35],{"type":24,"value":36},"/opt/1panel/apps/gitea/gitea/data/gitea/conf/app.ini",{"type":24,"value":38},"里的",{"type":19,"tag":31,"props":40,"children":42},{"className":41},[],[43],{"type":24,"value":44},"HTTP_PORT=3000",{"type":24,"value":46},".",{"title":7,"searchDepth":48,"depth":48,"links":49},2,[],"markdown","content:zh:blog:973.gitea-1panel-docker.md","content","zh/blog/973.gitea-1panel-docker.md","zh/blog/973.gitea-1panel-docker","md",1779497319929]