新增 README.md
This commit is contained in:
25
README.md
Normal file
25
README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Gitea docker container
|
||||
## Command
|
||||
- start container: `$ docker-compose -f <path of docker-compose.yml> start`
|
||||
- update container:
|
||||
1. edit docker-compose.yml file
|
||||
2. stop and remove old container: `$ docker-compose -f <path of docker-compose.yml> down`
|
||||
3. create new container and run in background(-d): `$ docker-compose -f <path of docker-command.yml> up -d`
|
||||
---
|
||||
## Runner configuration
|
||||
```YAML
|
||||
<service name ex. 'runner1'>:
|
||||
image: gitea/act_runner:0.2.6
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./data/act_runner:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- GITEA_INSTANCE_URL=http://<gitea server service name>:3000
|
||||
- GITEA_RUNNER_REGISTRATION_TOKEN=<registration token>
|
||||
```
|
||||
---
|
||||
reference
|
||||
1. [初探輕量級 DevOps 平台: Gitea - 台北 DevOpsDay](https://blog.wu-boy.com/2023/09/introduction-to-gitea-devops-platform/)
|
||||
Reference in New Issue
Block a user