🏡 index : ~doyle/rgit.git

author jordan <jordan@doyle.la> 2023-08-30 8:13:29.0 +01:00:00
committer GitHub <noreply@github.com> 2023-08-30 8:13:29.0 +01:00:00
commit
f32e304bc1068ed80e3e12801c3de84e6fdacfd5 [patch]
tree
bea7e85aa0d3fbb8473c8a96450178df0af3ad25
parent
d8c2cde20136688b8afadf778242260f94802b3e
parent
40dcfdb8dabddbb0b003505ee39afa3ae7a41239
download
f32e304bc1068ed80e3e12801c3de84e6fdacfd5.tar.gz

Merge branch 'main' into docker-fix



Diff

 README.md                           | 8 ++++++++
 docker-compose.override.yml.example | 4 ++++
 docker-compose.yml                  | 9 +++++++++
 3 files changed, 21 insertions(+)

diff --git a/README.md b/README.md
index 054a794..89136b3 100644
--- a/README.md
+++ a/README.md
@@ -120,3 +120,11 @@
```


**Note**: Take care to replace `$UID` and `$GID` with the UID and GID of the user that owns the directory containing your repositories or there will be errors! [See here](https://linuxhandbook.com/uid-linux/) to learn how to find the UID of a user.

#### Docker Compose

An example `docker-compose.yml` is provided for those who prefer using Compose. To configure the UID and GID, the user is specified in `docker-compose.override.yml`. 

An example override file has been has been provided with the repository. To use it, remove the `.example` extension from `docker-compose.override.yml.example`, and adjust the UID and GID to match the user that owns the directory containing your repositories.

Afterwards, bring up the container with `docker-compose up` to make sure everything works.
diff --git a/docker-compose.override.yml.example b/docker-compose.override.yml.example
new file mode 100644
index 0000000..8b3c820 100644
--- /dev/null
+++ a/docker-compose.override.yml.example
@@ -1,0 +1,4 @@
version: '3'
services:
  rgit:
    user: 1000:1000
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..dbb0670 100644
--- /dev/null
+++ a/docker-compose.yml
@@ -1,0 +1,9 @@
version: '3'
services:
  rgit:
    image: ghcr.io/w4/rgit:main
    volumes:
      - /path/to/my-repos:/git
    ports:
      - 3333:8000
    restart: unless-stopped