debut 08-02
This commit is contained in:
parent
3cd8a4180b
commit
69c0ef43ef
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/gitea/
|
||||
/gitea/*
|
7
config.yaml
Normal file
7
config.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
container:
|
||||
# Specifies the network to which the container will connect.
|
||||
# Could be host, bridge or the name of a custom network.
|
||||
# If it's empty, act_runner will create a network automatically.
|
||||
network: "host"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@ -0,0 +1,38 @@
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user