remove: docker-compose.forgejo.yml (contains plaintext runner token)
Some checks failed
Build & Push Docker Image / build (push) Failing after 0s

This commit is contained in:
Khoa Vo 2026-05-14 14:17:01 +07:00
parent 6830de73ef
commit 6bd0d483a9

View file

@ -1,57 +0,0 @@
services:
forgejo:
image: codeberg.org/forgejo/forgejo:9
container_name: forgejo
environment:
- USER_UID=1026
- USER_GID=100
- GITEA__database__DB_TYPE=sqlite3
- TZ=Asia/Ho_Chi_Minh
- GITEA__actions__ENABLED=true
- INSTALL_LOCK=true
- FORGEJO__server__ROOT_URL=https://git.khoavo.myds.me/
- FORGEJO__server__DOMAIN=git.khoavo.myds.me
restart: always
networks:
- forgejo_custom_net
volumes:
- ./forgejo-data:/data
ports:
- "3050:3000"
- "2222:22"
forgejo-runner:
image: code.forgejo.org/forgejo/runner:6.0.1-linux-amd64
container_name: forgejo_runner
restart: always
user: "0:0"
privileged: true
depends_on:
- forgejo
networks:
- forgejo_custom_net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./forgejo-runner-data:/data
entrypoint:
- sh
- -c
- |
apt-get update && apt-get install -y nodejs npm
if [ ! -f /data/.runner ]; then
forgejo-runner register --no-interactive \
--instance https://git.khoavo.myds.me \
--token ixTnxVSAkJDEB3c2GhkUXKF9R5j09cQYoEgrC17Z \
--name synology-runner \
--labels ubuntu-latest,ubuntu-22.04,docker:host
fi
forgejo-runner daemon
environment:
- TZ=Asia/Ho_Chi_Minh
networks:
forgejo_custom_net:
driver: bridge
ipam:
config:
- subnet: 10.38.0.0/24