kemonine
/
lollipopcloud
Archived
1
0
Fork 0
This commit is contained in:
remotenemesis 2019-02-10 22:29:06 -08:00
parent af9ded2ce7
commit 7a4650c754
1 changed files with 4 additions and 4 deletions

View File

@ -1,12 +1,12 @@
# Gitea with docker-compose
Ensure you have installed docker-compose (see instructions for [Raspian](../raspbian/README.md)) and have added the user you wish to start gitea services to the `docker` group. To add the current user, use: `sudo usermod -aG docker $USER`, or specify the user you desire. On Raspian you can use the default user `pi`. Relogin or simply restart to make the changes effective.
Ensure you have installed docker-compose (see instructions for [Raspian](../raspbian/README.md)) and have added the user you wish to start gitea services to the `docker` group. To add the current user: `sudo usermod -aG docker $USER`, or specify the user you desire. On Raspian you can use the default user `pi`. Re-login, or simply restart to make the changes effective.
This setup uses systemd to run a docker-compose file that start gitea with a postgres database. You will also need to define directories to store the contents of the postgress data and gitea data such as config and git repositories. You will likely want to store these directories on a [USB drive](../hardware/usb-flash-drive.md), or somewhere other than the Micro SD Card hosting the operating system.
This setup uses systemd to run a docker-compose file that starts gitea with a PostgreSQL database. You will also need to define directories to store the contents of the postgres data, and gitea data such as config and git repositories. You will likely want to store these directories on a [USB drive](../hardware/usb-flash-drive.md), or somewhere other than the Micro SD Card hosting the operating system.
## Create data directories
Create the following directories in a convenient location (the paths are up to you). For the actual value you used for the rest of these instructions, you will substitute the path any time it appears in curly braces.
Create the following directories in a convenient location (the paths are up to you). For the rest of the insructions, you will substitute the path any time it appears in curly braces.
| Path | Example |
|----------------|-----------------------------------------|
@ -15,7 +15,7 @@ Create the following directories in a convenient location (the paths are up to y
| gitea-postgres | /media/my-usb-drive/gitea/postgres/data |
| lollipop-home | /home/me/lollipop
Ensure the user that is going to run docker-compose to launch the gitea services has read and write permissions on these directories. To ensure correct ownership is assigned to the the application config at `{gitea-data}/gitea/conf/app.ini` you may need to create an empty file before starting the docker services (`touch {gitea-data}/gitea/conf/app.ini`).
Ensure the user that is going to run docker-compose to launch the gitea services has both read and write permissions on these directories. To ensure correct ownership is assigned to the the application config at `{gitea-data}/gitea/conf/app.ini` you may need to create an empty file before starting the docker services (`touch {gitea-data}/gitea/conf/app.ini`).
## Define services with docker-compose