54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
services:
|
|
forgejo:
|
|
image: codeberg.org/forgejo/forgejo:7
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
USER_UID: 1337
|
|
USER_GID: 1337
|
|
FORGEJO__database__DB_TYPE: mysql
|
|
FORGEJO__database__HOST: db
|
|
FORGEJO__database__LOG_SQL: "false"
|
|
FORGEJO__repository__DEFAULT_BRANCH: main
|
|
FORGEJO__server__SSH_DOMAIN: "%(DOMAIN)s"
|
|
FORGEJO__server__ROOT_URL: https://%(DOMAIN)s/
|
|
FORGEJO__server__DISABLE_SSH: "false"
|
|
FORGEJO__server__LFS_START_SERVER: "true"
|
|
FORGEJO__service__REGISTER_MANUAL_CONFIRM: "true"
|
|
FORGEJO__actions__ENABLED: "true"
|
|
FORGEJO__openid__ENABLE_OPENID_SIGNUP: "false"
|
|
FORGEJO__cron.git_gc_repos__ENABLED: "true"
|
|
FORGEJO__cron.gc_lfs__ENABLED: "true"
|
|
volumes:
|
|
- ./data/forgejo:/data
|
|
- config:/data/gitea/conf
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /home/forgejo/.ssh:/data/git/.ssh
|
|
db:
|
|
image: mariadb
|
|
restart: unless-stopped
|
|
environment:
|
|
MARIADB_RANDOM_ROOT_PASSWORD: "yes"
|
|
MARIADB_AUTO_UPGRADE: "yes"
|
|
volumes:
|
|
- ./database:/var/lib/mysql
|
|
command:
|
|
- --character-set-server=utf8mb4
|
|
- --collation-server=utf8mb4_unicode_ci
|
|
bridge:
|
|
image: shenxn/protonmail-bridge
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data/bridge:/root
|
|
runner:
|
|
image: gitea/act_runner
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- forgejo
|
|
volumes:
|
|
- ./data/act:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
volumes:
|
|
config: {}
|