Added forgejo runner
This commit is contained in:
parent
2e08e16904
commit
a897c26dff
2 changed files with 33 additions and 5 deletions
|
|
@ -9,6 +9,29 @@ services:
|
||||||
- /mertz/forgejo:/data
|
- /mertz/forgejo:/data
|
||||||
networks:
|
networks:
|
||||||
- barrios-network
|
- barrios-network
|
||||||
|
forgejo-runner:
|
||||||
|
build: ./forgejo
|
||||||
|
container_name: forgejo-runner
|
||||||
|
volumes:
|
||||||
|
- /mertz/forgejo/forgejo-runner:/data
|
||||||
|
depends_on:
|
||||||
|
- forgejo
|
||||||
|
environment:
|
||||||
|
- RUNNER_TOKEN=${RUNNER_TOKEN}
|
||||||
|
networks:
|
||||||
|
- barrios-network
|
||||||
|
command: /bin/sh -c '
|
||||||
|
if [ ! -f .runner ]; then
|
||||||
|
forgejo-runner register
|
||||||
|
--instance http://forgejo:3000
|
||||||
|
--token $$RUNNER_TOKEN
|
||||||
|
--name applyaway-runner
|
||||||
|
--labels "ubuntu-latest:host"
|
||||||
|
--no-interactive ;
|
||||||
|
forgejo-runner generate-config > config.yml ;
|
||||||
|
fi ;
|
||||||
|
forgejo-runner daemon --config config.yml
|
||||||
|
'
|
||||||
jellyfin:
|
jellyfin:
|
||||||
image: jellyfin/jellyfin
|
image: jellyfin/jellyfin
|
||||||
container_name: jellyfin
|
container_name: jellyfin
|
||||||
|
|
@ -155,9 +178,9 @@ services:
|
||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
- "8081:80/tcp" # Web UI
|
- "8081:80/tcp" # Web UI
|
||||||
environment:
|
environment:
|
||||||
TZ: 'America/Toronto'
|
TZ: "America/Toronto"
|
||||||
FTLCONF_webserver_api_password: ${PIHOLE_PASSWORD}
|
FTLCONF_webserver_api_password: ${PIHOLE_PASSWORD}
|
||||||
FTLCONF_dns_listeningMode: 'ALL'
|
FTLCONF_dns_listeningMode: "ALL"
|
||||||
volumes:
|
volumes:
|
||||||
- /mertz/pihole/etc-pihole:/etc/pihole
|
- /mertz/pihole/etc-pihole:/etc/pihole
|
||||||
- /mertz/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
|
- /mertz/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
|
||||||
|
|
|
||||||
5
forgejo/Dockerfile
Normal file
5
forgejo/Dockerfile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
FROM data.forgejo.org/forgejo/runner:12
|
||||||
|
|
||||||
|
USER root
|
||||||
|
RUN apk add --no-cache python3 nodejs
|
||||||
|
USER 1000:1000
|
||||||
Loading…
Reference in a new issue