gitea/docker-compose.yaml

76 lines
1.7 KiB
YAML
Raw Normal View History

2022-11-27 00:27:06 +08:00
version: "3"
networks:
gitea:
2024-02-05 23:27:08 +08:00
name: local
2023-04-05 13:51:27 +08:00
driver:
bridge
2024-02-05 23:27:08 +08:00
external: true
2022-11-27 00:27:06 +08:00
services:
2023-04-05 13:51:27 +08:00
gitea:
2022-11-27 00:27:06 +08:00
container_name: gitea
2024-02-05 23:27:08 +08:00
image: gitea/gitea:nightly
2022-11-27 00:27:06 +08:00
environment:
2023-04-05 13:51:27 +08:00
USER_UID: 1000
USER_GID: 1000
TZ:
TERM:
2024-02-05 23:27:08 +08:00
GITEA__webhook__ALLOWED_HOST_LIST: "*"
2022-11-27 00:27:06 +08:00
restart: always
networks:
- gitea
volumes:
2023-03-29 10:00:48 +08:00
- ${DIR:-.}/gitea/data:/data
2022-11-27 00:27:06 +08:00
- /etc/localtime:/etc/localtime:ro
ports:
- "1080:3000"
2024-02-05 23:27:08 +08:00
- "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