Changes for page How to set up a gitea docker instance
Last modified by Alexandru Pentilescu on 2024/07/16 22:44
From version 3.1
edited by Alexandru Pentilescu
on 2024/07/16 21:11
on 2024/07/16 21:11
Change comment:
There is no comment for this version
To version 4.1
edited by Alexandru Pentilescu
on 2024/07/16 21:17
on 2024/07/16 21:17
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -69,3 +69,32 @@ 69 69 chown git:git -R /home/git/.ssh/ 70 70 chmod 700 /home/git/.ssh/ 71 71 {{/code}} 72 + 73 +Once all these steps are done, you can proceed to the next step. 74 + 75 += Spin up a container from the docker image = 76 + 77 +{{code language="bash"}} 78 +docker-compose up -d 79 +{{/code}} 80 + 81 +Had all the necessary steps been done properly, this should yield a fully functional container. If there are any errors encountered by this point, please fix them before proceeding. 82 + 83 += Set up a proper nginx endpoint for the docker service = 84 +Deploy the following configuration to make the container accessible to the outside world: 85 + 86 +{{code language="nginx"}} 87 +server { 88 + server_name git.transistor.one; 89 + 90 + listen [::]:443 http2 ssl; # managed by Certbot 91 + listen 443 http2 ssl; # managed by Certbot 92 + # http2 on; 93 + 94 + include /etc/nginx/snippets/ssl.conf; 95 + 96 + location / { 97 + proxy_pass http://localhost:3000; 98 + } 99 +} 100 +{{/code}}