[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"/blog/tag/docker":3},[4],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"date":11,"tags":12,"body":16,"_type":51,"_id":52,"_source":53,"_file":54,"_stem":55,"_extension":56},"/blog/gitea-1panel-docker","blog",false,"","Deploying Gitea with 1Panel, Unable to Access After Installation","Step 1: Install Gitea from the 1Panel app store. The default port is 3000, but I changed it to 8000. Step 2: Access 'server IP:8000'. Gitea's first-time visit requires installation, which is actually filling in the configuration information. After submitting, the service will restart and then become inaccessible.","2026-05-23 08:37",[13,14,15],"gitea","1panel","docker",{"type":17,"children":18,"toc":48},"root",[19,26],{"type":20,"tag":21,"props":22,"children":23},"element","p",{},[24],{"type":25,"value":10},"text",{"type":20,"tag":21,"props":27,"children":28},{},[29,31,38,40,46],{"type":25,"value":30},"The problem is in Step 1. Writing 8000 in Step 1 actually configures the Docker container's port mapping, mapping the external port 8000 to the container's port 3000. Then in Step 2, you also need to fill in a port. Out of habit, you fill in 8000, but then you cannot access it. The solution is to fill in the default port 3000 in Step 2. For those who have already installed it, you can modify ",{"type":20,"tag":32,"props":33,"children":35},"code",{"className":34},[],[36],{"type":25,"value":37},"HTTP_PORT=3000",{"type":25,"value":39}," in ",{"type":20,"tag":32,"props":41,"children":43},{"className":42},[],[44],{"type":25,"value":45},"/opt/1panel/apps/gitea/gitea/data/gitea/conf/app.ini",{"type":25,"value":47},".",{"title":8,"searchDepth":49,"depth":49,"links":50},2,[],"markdown","content:blog:973.gitea-1panel-docker.md","content","blog/973.gitea-1panel-docker.md","blog/973.gitea-1panel-docker","md",1779497319000]