gitignore
This commit is contained in:
parent
15cd52852f
commit
4b1e94a7fa
4 changed files with 44 additions and 0 deletions
27
docker-compose.yaml
Normal file
27
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
services:
|
||||
|
||||
dind:
|
||||
image: "docker:dind"
|
||||
container_name: "dind"
|
||||
hostname: "dind"
|
||||
privileged: true
|
||||
command: [ "dockerd", "-H", "tcp://0.0.0.0:2375", "--tls=false" ]
|
||||
restart: 'unless-stopped'
|
||||
|
||||
runner:
|
||||
image: "data.forgejo.org/forgejo/runner:6.3.1"
|
||||
container_name: "runner"
|
||||
hostname: "runner"
|
||||
links:
|
||||
- dind
|
||||
depends_on:
|
||||
dind:
|
||||
condition: service_started
|
||||
environment:
|
||||
DOCKER_HOST: tcp://dind:2375
|
||||
# User without root privileges, but with access to `./data`.
|
||||
user: 1001:1001
|
||||
volumes:
|
||||
- ./runner/data:/data
|
||||
restart: unless-stopped
|
||||
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue