- rename `forgejo-runner-dind` app directory to `forgejo-runner` to consolidate versions - delete old standalone `forgejo-runner-dind` app files (README.md, data.yml, logo.png) - move existing `12.6.2-dind` version files under the new unified `forgejo-runner` app - update configuration for both DooD and DinD deployment modes within the unified app - add new `README_en.md` file with english documentation - update main `README.md` with improved product introduction and clearer version comparison - add `PRIVILEGED` mode configuration option to data.yml - update docker-compose files for both versions with refined environment variable usage and labels - standardize service names and container naming conventions
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
services:
|
|
forgejo-runner:
|
|
image: code.forgejo.org/forgejo/runner:12.6.2
|
|
container_name: ${CONTAINER_NAME}
|
|
depends_on:
|
|
dind:
|
|
condition: service_started
|
|
links:
|
|
- dind
|
|
restart: always
|
|
user: 1000:1000
|
|
command: /data/scripts/register.sh
|
|
volumes:
|
|
- ./data/runner-data:/data
|
|
- ./scripts/register.sh:/data/scripts/register.sh:ro
|
|
environment:
|
|
- DOCKER_HOST=tcp://dind:2375
|
|
- 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.1.5-dind
|
|
container_name: ${CONTAINER_NAME}-dind
|
|
privileged: ${PRIVILEGED}
|
|
restart: unless-stopped
|
|
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
|
|
environment:
|
|
DOCKER_TLS_CERTDIR: ""
|
|
volumes:
|
|
- ./data/dind-data:/var/lib/docker
|
|
- ./data/daemon.json:/etc/docker/daemon.json:ro
|
|
networks:
|
|
- 1panel-network
|
|
labels:
|
|
createdBy: Apps
|
|
networks:
|
|
1panel-network:
|
|
external: true
|