Changes for page How to set up a gitea docker instance
Last modified by Alexandru Pentilescu on 2024/07/16 22:44
From version 5.1
edited by Alexandru Pentilescu
on 2024/07/16 21:18
on 2024/07/16 21:18
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
-
... ... @@ -1,9 +1,6 @@ 1 -{{box cssClass="floatinginfobox" title="**Contents**"}} 2 -{{toc /}} 3 -{{/box}} 1 +{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc /}}{{/box}} 4 4 5 5 = Basic installation = 6 - 7 7 To setup a gitea server using docker, the following docker-compose.yml file shall be used: 8 8 9 9 {{code language="yaml"}} ... ... @@ -52,11 +52,12 @@ 52 52 53 53 Do a simple command to create the necessary directories: 54 54 55 -{{code language="bash"}}mkdir data db{{/code}} 52 +{{code language="bash"}} 53 +mkdir data db 54 +{{/code}} 56 56 Backing up just these two directories should, in theory, be enough to allow for full restoration of all git repository resources into the future. **WARNING: This has not been tested yet!!!** 57 57 58 58 = Create a separate git user to login into via SSH = 59 - 60 60 Creating a separate user, technically, is unnecessary, but it makes the configuration more conventional. 61 61 62 62 {{code language="bash"}} ... ... @@ -83,7 +83,6 @@ 83 83 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. 84 84 85 85 = Set up a proper nginx endpoint for the docker service = 86 - 87 87 Deploy the following configuration to make the container accessible to the outside world: 88 88 89 89 {{code language="nginx"}} ... ... @@ -101,9 +101,3 @@ 101 101 } 102 102 } 103 103 {{/code}} 104 - 105 -Once this is done, restart nginx: 106 - 107 -{{code language="bash"}} 108 -systemctl restart nginx 109 -{{/code}}