Add gitea runner
This commit is contained in:
+19
-1
@@ -25,6 +25,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
|
|
||||||
|
# سرویس مدیریت گیت
|
||||||
gitea:
|
gitea:
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
container_name: kuki_gitea
|
container_name: kuki_gitea
|
||||||
@@ -32,7 +33,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
- GITEA__server__ROOT_URL=http://YOUR_PUBLIC_IP:3000
|
- GITEA__server__ROOT_URL=http://130.61.139.162:3000
|
||||||
|
- GITEA__actions__ENABLED=true
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
- "2222:22"
|
- "2222:22"
|
||||||
@@ -41,7 +43,23 @@ services:
|
|||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
# سرویس مجری CI/CD
|
||||||
|
gitea_runner:
|
||||||
|
image: gitea/act_runner:latest
|
||||||
|
container_name: kuki_runner
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- CONFIG_FILE=/config.yaml
|
||||||
|
- GITEA_INSTANCE_URL=http://gitea:3000
|
||||||
|
- GITEA_RUNNER_REGISTRATION_TOKEN=Ct8eH5lC0Sf6AUJlEouy2LliL0RDp3T5M7JPfCMP
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- gitea_runner_data:/data
|
||||||
|
depends_on:
|
||||||
|
- gitea
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
redis_data:
|
redis_data:
|
||||||
gitea_data:
|
gitea_data:
|
||||||
|
gitea_runner_data:
|
||||||
Reference in New Issue
Block a user