39 lines
829 B
YAML
39 lines
829 B
YAML
|
version: '3'
|
||
|
|
||
|
networks:
|
||
|
gitea:
|
||
|
external: false
|
||
|
|
||
|
services:
|
||
|
server:
|
||
|
image: 'gitea/gitea:1.21'
|
||
|
container_name: gitea
|
||
|
environment:
|
||
|
- USER_UID=1000
|
||
|
- USER_GID=1000
|
||
|
restart: always
|
||
|
networks:
|
||
|
- gitea
|
||
|
volumes:
|
||
|
- './gitea:/data'
|
||
|
- '/etc/timezone:/etc/timezone:ro'
|
||
|
- '/etc/localtime:/etc/localtime:ro'
|
||
|
ports:
|
||
|
- '3000:3000'
|
||
|
- '222:22'
|
||
|
|
||
|
runner:
|
||
|
image: 'gitea/act_runner:0.2.6'
|
||
|
container_name: my_runner
|
||
|
environment:
|
||
|
- 'GITEA_INSTANCE_URL=http://server:3000'
|
||
|
- 'GITEA_RUNNER_REGISTRATION_TOKEN=k5G4jLl4ZKa2pqVJ4pLCOIbkV6m7T6hhC5ZOMCJr'
|
||
|
- CONFIG_FILE=/config.yaml
|
||
|
volumes:
|
||
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
||
|
- './config.yaml:/config.yaml'
|
||
|
networks:
|
||
|
- gitea
|
||
|
depends_on:
|
||
|
- server
|