Files
docker-compose/version-control/docker-compose.yml

59 lines
2.0 KiB
YAML

services:
gitea:
image: docker.gitea.com/gitea:1.24.5
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__server__DOMAIN=${GITEA__server__DOMAIN}
- GITEA__server__SSH_DOMAIN=${GITEA__server__SSH_DOMAIN}
- GITEA__server__ROOT_URL=${GITEA__server__ROOT_URL}
- GITEA__server__SSH_PORT=222 # external port users connect to
- GITEA__server__SSH_LISTEN_PORT=22 # internal container port
- GITEA__server__START_SSH_SERVER=false
- GITEA__server__DISABLE_SSH=false
- GITEA__mailer__ENABLED=true
- GITEA__mailer__PROTOCOL=smtps
- GITEA__mailer__FROM=${GITEA__mailer__FROM}
- GITEA__mailer__SMTP_ADDR=${GITEA__mailer__SMTP_ADDR}
- GITEA__mailer__SMTP_PORT=${GITEA__mailer__SMTP_PORT}
- GITEA__mailer__USER=${GITEA__mailer__USER}
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD}"""
volumes:
- /mnt/user/appdata/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "6734:3000"
- "222:22"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
labels:
net.unraid.docker.icon: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/gitea.png"
folder.view2: "Services"
runner:
image: docker.io/gitea/act_runner:nightly
container_name: gitea-runner
depends_on:
gitea:
condition: service_healthy
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "http://10.0.0.1:6734/"
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
GITEA_RUNNER_NAME: "${RUNNER_NAME}"
volumes:
- /mnt/user/appdata/gitea-runner/config.yaml:/config.yaml
- /mnt/user/appdata/gitea-runner/data:/data
- /var/run/docker.sock:/var/run/docker.sock
labels:
net.unraid.docker.icon: "https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/gitea.png"
folder.view2: "Runners"