feat(gitea): add gitea stack
This commit is contained in:
8
compose/gitea/.env.example
Normal file
8
compose/gitea/.env.example
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
USER_UID="1000"
|
||||||
|
USER_GID="1000"
|
||||||
|
GITEA_DATA_PATH="../../volumes/gitea/gitea"
|
||||||
|
GITEA__database__PASSWD="superSecurePassword"
|
||||||
|
GITEA__server__ROOT_URL="https://git.your.domain"
|
||||||
|
HTTP_PORT="3100"
|
||||||
|
SSH_PORT="222"
|
||||||
|
POSTGRES_DATA_PATH="../../volumes/gitea/postgres"
|
||||||
41
compose/gitea/docker-compose.yml
Normal file
41
compose/gitea/docker-compose.yml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
networks:
|
||||||
|
gitea:
|
||||||
|
external: false
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: docker.gitea.com/gitea:latest
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
USER_UID: "${USER_UID:-1000}"
|
||||||
|
USER_GID: "${USER_GID:-1000}"
|
||||||
|
GITEA__database__DB_TYPE: "postgres"
|
||||||
|
GITEA__database__HOST: "db:5432"
|
||||||
|
GITEA__database__NAME: "gitea"
|
||||||
|
GITEA__database__USER: "gitea"
|
||||||
|
GITEA__database__PASSWD: "${GITEA__database__PASSWD:?}"
|
||||||
|
GITEA__server__ROOT_URL: "${GITEA__server__ROOT_URL:?}"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- "${GITEA_DATA_PATH:?}:/data"
|
||||||
|
- "/etc/timezone:/etc/timezone:ro"
|
||||||
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
|
ports:
|
||||||
|
- "${HTTP_PORT:-3100}:3000"
|
||||||
|
- "${SSH_PORT:-222}:22"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: docker.io/library/postgres:14
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: "gitea"
|
||||||
|
POSTGRES_PASSWORD: "${GITEA__database__PASSWD:?}"
|
||||||
|
POSTGRES_DB: "gitea"
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
volumes:
|
||||||
|
- "${POSTGRES_DATA_PATH:?}:/var/lib/postgresql/data"
|
||||||
Reference in New Issue
Block a user