updates...

This commit is contained in:
Amar Saljic
2025-11-15 23:02:28 +01:00
parent 4ccd00db2d
commit cd2b304a5c
16 changed files with 338 additions and 39 deletions

View File

@ -25,13 +25,4 @@ In case user/group doesn't exist at all, please create the user & group incl. th
```
sudo groupadd -g 1003 gitea-group
sudo useradd -g gitea-group -u 1003 gitea-user
```
## About secrets
In order to manage secrets centrally in 1Password and due to the need for secrets in Gitea, using `docker compose` directly in the terminal does not work.
## Bring up/tear down container
Please use the `start.sh` to spin up the container
### Prerequisites start.sh
- User executing the script is part of the `docker` group
- Env variable `OP_SERVICE_ACCOUNT_TOKEN` is set up \[check out top-level README.md for more information on how to set this up\]
```

View File

@ -1,6 +1,3 @@
secrets:
gitea_postgres_password:
environment: GITEA_POSTGRES_PASSWORD
services:
gitea:
image: docker.gitea.com/gitea:1-rootless
@ -14,11 +11,9 @@ services:
GITEA__database__HOST: postgres:5432
GITEA__database__NAME: gitea
GITEA__database__USER: gitea
GITEA__database__PASSWD_FILE: /run/secrets/gitea_postgres_password
restart: always
volumes: ['./data:/var/lib/gitea', './config:/etc/gitea']
ports: ['8030:3000', '2222:2222']
secrets: ['gitea_postgres_password']
networks: ['homelab']
networks:

View File

@ -1,12 +0,0 @@
#!/bin/zsh
# Exit immediately if a command exits with a non-zero status.
set -e
echo "--- Starting Docker Secret Management ---"
# Mount secrets
export GITEA_POSTGRES_PASSWORD="$(op read 'op://NAxS Homelab/Gitea Postgres credentials/password')"
# Bring up container
docker compose up -d
echo "--- Docker Secret Management Complete ---"