umbrel-apps/gitea/docker-compose.yml
2024-03-05 21:40:21 -08:00

44 lines
1.4 KiB
YAML

version: "3.7"
services:
app_proxy:
environment:
APP_HOST: gitea_server_1
APP_PORT: 8085
PROXY_AUTH_ADD: "false"
server:
image: gitea/gitea:1.21.7-rootless@sha256:5d433ef2ebae7eae7b0d0ec42263645a9d200d342fc31ea5bca9745611f89811
user: "1000:1000"
restart: on-failure
ports:
- "${APP_GITEA_SSH_PORT}:${APP_GITEA_SSH_PORT}"
volumes:
- ${APP_DATA_DIR}/data/gitea/data:/var/lib/gitea
- ${APP_DATA_DIR}/data/gitea/config:/etc/gitea
environment:
GITEA__security__INSTALL_LOCK: "true"
GITEA__server__DOMAIN: "${APP_DOMAIN}"
GITEA__server__HTTP_PORT: 8085
GITEA__server__SSH_DOMAIN: "${APP_DOMAIN}"
GITEA__server__SSH_PORT: "${APP_GITEA_SSH_PORT}"
GITEA__server__SSH_LISTEN_PORT: "${APP_GITEA_SSH_PORT}"
GITEA__server__START_SSH_SERVER: "true"
GITEA__database__DB_TYPE: "mysql"
GITEA__database__HOST: "gitea_db_1:3306"
GITEA__database__NAME: "gitea"
GITEA__database__USER: "gitea"
GITEA__database__PASSWD: "moneyprintergobrrr"
db:
image: mariadb:11.0.3@sha256:3fde6add72f24360c7d367c33157ca8f456b1f99d7c6973b8e169b7c9f3b90a8
user: "1000:1000"
restart: on-failure
volumes:
- ${APP_DATA_DIR}/data/db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "gitea"
MYSQL_USER: "gitea"
MYSQL_PASSWORD: "moneyprintergobrrr"
MYSQL_DATABASE: "gitea"