Merge pull request 'gitea' (#67) from gitea into main

## Détails

- Crétion d'un fichier spécifique pour la configuration de Postgres pour la configuration du projet Gitea
- Mise à jour de la version de Gitea

## Pourquoi

- Pour permettre d'initialiser un projet Gitea sans base de données et en utilisant SQLite

Reviewed-on: #67
This commit is contained in:
Simon 2023-09-28 12:02:13 +02:00
commit f944ef4fe3
6 changed files with 25 additions and 9 deletions

View File

@ -1,3 +1,5 @@
---
version: "3.8"
services:

View File

@ -1,3 +1,5 @@
---
version: "3.8"
services:

View File

@ -0,0 +1,14 @@
---
version: "3.8"
services:
gitea:
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=${POSTGRES_CONTAINER_NAME:-postgres}:5432
- GITEA__database__NAME=${POSTGRES_DB}
- GITEA__database__USER=${POSTGRES_USER}
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
depends_on:
- postgres

View File

@ -1,3 +1,5 @@
---
version: "3.8"
services:

View File

@ -1,3 +1,5 @@
---
version: "3.8"
networks:

View File

@ -1,3 +1,5 @@
---
version: "3.8"
volumes:
@ -7,17 +9,11 @@ volumes:
services:
gitea:
container_name: ${GITEA_CONTAINER_NAME:-gitea}
image: ${GITEA_IMAGE:-gitea/gitea:1.18.4}
image: ${GITEA_IMAGE:-gitea/gitea:1.20.4}
restart: always
environment:
- USER_UID=${GITEA_UID:-1000}
- USER_GID=${GITEA_GID:-1000}
# Database
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=${POSTGRES_CONTAINER_NAME:-postgres}:5432
- GITEA__database__NAME=${POSTGRES_DB}
- GITEA__database__USER=${POSTGRES_USER}
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
# Security
# docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY
- GITEA__security__SECRET_KEY=${GITEA_SECRET_KEY}
@ -27,5 +23,3 @@ services:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
depends_on:
- postgres