Auto saved by Logseq

This commit is contained in:
Andrea Fazzi 2024-11-08 09:28:58 +01:00
parent a59ac614ae
commit c8179a2ff0

View file

@ -8,35 +8,36 @@
- Documentazione per l'installazione del runner - Documentazione per l'installazione del runner
- https://forgejo.org/docs/next/admin/actions/ - https://forgejo.org/docs/next/admin/actions/
- Per installare il runner sulla macchina che dovrà eseguire le azioni - Per installare il runner sulla macchina che dovrà eseguire le azioni
-
- ```bash` export RUNNER_VERSION=$(curl -X 'GET' https://code.forgejo.org/api/v1/repos/forgejo/runner/releases/latest | jq .name -r | cut -c 2-) - ```bash` export RUNNER_VERSION=$(curl -X 'GET' https://code.forgejo.org/api/v1/repos/forgejo/runner/releases/latest | jq .name -r | cut -c 2-)
`` ``
- Configurazione #homelab - Configurazione #homelab
- `docker-compose.yml` implementato per poter funzionare con #traefik - `docker-compose.yml` implementato per poter funzionare con #traefik
- ```yaml - ```yaml
networks: networks:
proxy: proxy:
external: true external: true
services: services:
server: server:
image: codeberg.org/forgejo/forgejo:8 image: codeberg.org/forgejo/forgejo:8
container_name: forgejo container_name: forgejo
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./forgejo:/data - ./forgejo:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
labels: labels:
- traefik.http.routers.forgejo.entrypoints=websecure - traefik.http.routers.forgejo.entrypoints=websecure
- traefik.http.routers.forgejo.tls=true - traefik.http.routers.forgejo.tls=true
- traefik.http.routers.forgejo.rule=Host(`forgejo.hackersgarage.dev`) - traefik.http.routers.forgejo.rule=Host(`forgejo.hackersgarage.dev`)
- traefik.http.routers.forgejo.tls.certresolver=letsencrypt - traefik.http.routers.forgejo.tls.certresolver=letsencrypt
- traefik.http.services.forgejo.loadbalancer.server.port=3000 - traefik.http.services.forgejo.loadbalancer.server.port=3000
networks: networks:
- proxy - proxy
- default - default
``` ```