76 lines
1.7 KiB
YAML
76 lines
1.7 KiB
YAML
version: "3"
|
|
|
|
networks:
|
|
gitea:
|
|
name: local
|
|
driver:
|
|
bridge
|
|
external: true
|
|
|
|
services:
|
|
gitea:
|
|
container_name: gitea
|
|
image: gitea/gitea:nightly
|
|
environment:
|
|
USER_UID: 1000
|
|
USER_GID: 1000
|
|
TZ:
|
|
TERM:
|
|
GITEA__webhook__ALLOWED_HOST_LIST: "*"
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- ${DIR:-.}/gitea/data:/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "1080:3000"
|
|
- "10022:22"
|
|
|
|
gitru:
|
|
container_name: gitru
|
|
image: gitea/act_runner:nightly-dind-rootless
|
|
restart: always
|
|
privileged: true
|
|
depends_on:
|
|
- gitea
|
|
networks:
|
|
- gitea
|
|
environment:
|
|
TZ:
|
|
TERM:
|
|
GITEA_INSTANCE_URL:
|
|
GITEA_RUNNER_REGISTRATION_TOKEN:
|
|
DOCKER_HOST: unix:///run/user/1000/docker.sock
|
|
GITEA_RUNNER_NAME: def
|
|
# GITEA_RUNNER_LABELS: ubuntu-latest:docker://node:16
|
|
volumes:
|
|
- ${DIR:-.}/gitrun/data:/data
|
|
- ${DIR:-.}/gitrun/config.yaml:/config.yaml
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
gitru-git:
|
|
container_name: gitru-git
|
|
image: gitea/act_runner:git
|
|
build:
|
|
context: .
|
|
dockerfile: git.Dockerfile
|
|
restart: always
|
|
privileged: true
|
|
depends_on:
|
|
- gitea
|
|
networks:
|
|
- gitea
|
|
environment:
|
|
TZ:
|
|
TERM:
|
|
GITEA_INSTANCE_URL:
|
|
GITEA_RUNNER_REGISTRATION_TOKEN:
|
|
DOCKER_HOST: unix:///run/user/1000/docker.sock
|
|
GITEA_RUNNER_NAME: def_host
|
|
GITEA_RUNNER_LABELS: linux:host,
|
|
volumes:
|
|
- ${DIR:-.}/gitrun-git/data:/data
|
|
- ${DIR:-.}/gitrun-git/config.yaml:/config.yaml
|
|
- ${DEST_APP:-.}/git-repo:/app/
|
|
- /etc/localtime:/etc/localtime:ro |