Compare commits
2 commits
6686ba2640
...
97d5adc4ad
Author | SHA1 | Date | |
---|---|---|---|
97d5adc4ad | |||
70131bb682 |
1 changed files with 32 additions and 1 deletions
|
@ -43,7 +43,7 @@ services:
|
||||||
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:13
|
image: postgres:${POSTGRES_VERSION}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
|
@ -62,8 +62,39 @@ services:
|
||||||
- "diun.enable=true"
|
- "diun.enable=true"
|
||||||
|
|
||||||
|
|
||||||
|
docker-in-docker:
|
||||||
|
image: docker:dind
|
||||||
|
privileged: 'true'
|
||||||
|
command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false']
|
||||||
|
restart: 'unless-stopped'
|
||||||
|
networks:
|
||||||
|
- runner
|
||||||
|
|
||||||
|
|
||||||
|
runner:
|
||||||
|
image: code.forgejo.org/forgejo/runner:3.5.1
|
||||||
|
links:
|
||||||
|
- docker-in-docker
|
||||||
|
depends_on:
|
||||||
|
docker-in-docker:
|
||||||
|
condition: service_started
|
||||||
|
environment:
|
||||||
|
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||||
|
user: 1002:1002
|
||||||
|
volumes:
|
||||||
|
- /var/dockervolumes/git/runner:/data
|
||||||
|
restart: 'unless-stopped'
|
||||||
|
# command: '/bin/sh -c "while : ; do sleep 1 ; done ;"' # for registration
|
||||||
|
command: '/bin/sh -c "sleep 5; forgejo-runner daemon"'
|
||||||
|
networks:
|
||||||
|
- git
|
||||||
|
- runner
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
git:
|
git:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
|
runner:
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue