2022-03-29 19:35:02 +02:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
2024-02-16 00:09:37 +01:00
|
|
|
image: codeberg.org/forgejo/forgejo:${gitea_version:-latest}
|
2022-03-29 19:35:02 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- GITEA__database__DB_TYPE=mysql
|
|
|
|
- GITEA__database__HOST=db:3306
|
|
|
|
- GITEA__database__NAME=gitea
|
|
|
|
- GITEA__database__USER=gitea
|
|
|
|
- GITEA__database__PASSWD=gitea
|
|
|
|
- GITEA__server__DOMAIN=git.jfreudenberger.de
|
|
|
|
- GITEA__server__SSH_DOMAIN=git.jfreudenberger.de
|
|
|
|
- GITEA__server__ROOT_URL=https://git.jfreudenberger.de
|
|
|
|
- GITEA__server__LFS_JWT_SECRET=${LFS_JWT_SECRET}
|
|
|
|
- GITEA__security__SECRET_KEY=${SECRET_KEY}
|
|
|
|
- GITEA__security__INTERNAL_TOKEN=${INTERNAL_TOKEN}
|
2022-03-29 20:49:19 +02:00
|
|
|
- GITEA__security__INSTALL_LOCK=${INSTALL_LOCK:-true}
|
|
|
|
- GITEA__service__DISABLE_REGISTRATION=${DISABLE_REGISTRATION:-true}
|
2022-03-29 19:35:02 +02:00
|
|
|
- GITEA__service__NO_REPLY_ADDRESS=${NO_REPLY_ADDRESS:-noreply@jfreudenberger.de}
|
|
|
|
- GITEA__oauth__JWT_SECRET=${OAUTH_JWT_SECRET}
|
|
|
|
- GITEA__mailer__ENABLED=${MAILER_ENABLED:-false}
|
2024-11-19 12:55:21 +01:00
|
|
|
- GITEA__mailer__SMTP_ADDR=${SMTP_ADDR}
|
|
|
|
- GITEA__mailer__SMTP_PORT=${SMTP_PORT}
|
2022-03-29 19:35:02 +02:00
|
|
|
- GITEA__mailer__FROM=${MAILER_FROM}
|
|
|
|
- GITEA__mailer__USER=${MAILER_USER}
|
|
|
|
- GITEA__mailer__PASSWD=${MAILER_PASSWD}
|
2023-07-24 14:59:34 +02:00
|
|
|
- GITEA__actions__ENABLED=${ACTIONS_ENABLED}
|
2022-03-29 19:35:02 +02:00
|
|
|
- VIRTUAL_HOST=git.jfreudenberger.de
|
|
|
|
- VIRTUAL_PORT=3000
|
|
|
|
- LETSENCRYPT_HOST=git.jfreudenberger.de
|
|
|
|
volumes:
|
|
|
|
- gitea-data:/data
|
|
|
|
- gitea-backup:/backup
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
|
|
- "222:22"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- gitea
|
|
|
|
- webproxy
|
2022-05-09 18:30:29 +02:00
|
|
|
- smtp_relay
|
2022-03-29 19:35:02 +02:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb:${mariadb_version:-10.7}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- MARIADB_ROOT_PASSWORD=gitea
|
|
|
|
- MARIADB_USER=gitea
|
|
|
|
- MARIADB_PASSWORD=gitea
|
|
|
|
- MARIADB_DATABASE=gitea
|
|
|
|
volumes:
|
|
|
|
- mariadb-data:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- gitea
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea-data:
|
|
|
|
gitea-backup:
|
|
|
|
mariadb-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gitea:
|
|
|
|
webproxy:
|
|
|
|
external: true
|
|
|
|
name: webproxy
|
2022-05-09 18:30:29 +02:00
|
|
|
smtp_relay:
|
2022-05-09 17:57:29 +02:00
|
|
|
external: true
|
2022-05-09 18:30:29 +02:00
|
|
|
name: smtp_relay
|