gitea #67

Merged
kosssi merged 2 commits from gitea into main 2023-09-28 12:02:13 +02:00
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