mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-18 01:01:02 +08:00
- Add new `DOCKER_MODE` form field to choose between `dood` and `dind` modes, removing old `PRIVILEGED` mode field and `-dind` variant application - Update `docker-compose.yml` to conditionally include `dind` service based on mode, and refactor `init.sh` to dynamically set `DOCKER_HOST` environment variable - Refactor `register.sh` to handle both modes, configure runner accordingly, update default values for registration fields, and define the default job container base image as node:lts - Update README with detailed security risk warnings for both modes, remove version selection instructions, and add usage examples for custom container images and installing docker client in workflows
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
services:
|
|
forgejo-runner:
|
|
image: code.forgejo.org/forgejo/runner:12.6.3
|
|
container_name: ${CONTAINER_NAME}
|
|
user: root
|
|
depends_on:
|
|
dind:
|
|
condition: service_started
|
|
command: /data/scripts/register.sh
|
|
volumes:
|
|
- ./data:/data
|
|
- ./scripts/register.sh:/data/scripts/register.sh:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
- DOCKER_MODE=${DOCKER_MODE}
|
|
- DOCKER_HOST=${DOCKER_HOST}
|
|
- FORGEJO_INSTANCE_URL=${FORGEJO_INSTANCE_URL}
|
|
- RUNNER_REGISTRATION_TOKEN=${RUNNER_REGISTRATION_TOKEN}
|
|
- RUNNER_NAME=${RUNNER_NAME}
|
|
- RUNNER_LABELS=${RUNNER_LABELS}
|
|
networks:
|
|
- 1panel-network
|
|
labels:
|
|
createdBy: Apps
|
|
dind:
|
|
image: docker:29.2.0
|
|
container_name: ${CONTAINER_NAME}-dind
|
|
privileged: true
|
|
restart: unless-stopped
|
|
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
|
|
environment:
|
|
DOCKER_TLS_CERTDIR: ""
|
|
volumes:
|
|
- ./dind-data:/var/lib/docker
|
|
networks:
|
|
- 1panel-network
|
|
labels:
|
|
createdBy: Apps
|
|
networks:
|
|
1panel-network:
|
|
external: true
|