knowledgebase/pages/forgejo.md
2024-10-02 09:50:34 +02:00

1 KiB

  • E' un sistema di revisione basato su #git
  • E' presente tra i servizi del mio #homelab
  • Si integra con #podman e #traefik
  • Consente un #CDCI alla #Github actions
  • Configurazione #homelab
    • docker-compose.yml implementato per poter funzionare con #traefik
    • networks:
        proxy:
          external: true
      
      services:
        server:
          image: codeberg.org/forgejo/forgejo:8
          container_name: forgejo
          environment:
            - USER_UID=1000
            - USER_GID=1000
          restart: unless-stopped
          volumes:
            - ./forgejo:/data
            - /etc/timezone:/etc/timezone:ro
            - /etc/localtime:/etc/localtime:ro
          labels:
            - traefik.http.routers.forgejo.entrypoints=websecure
            - traefik.http.routers.forgejo.tls=true
            - traefik.http.routers.forgejo.rule=Host(`forgejo.hackersgarage.dev`)
            - traefik.http.routers.forgejo.tls.certresolver=letsencrypt
            - traefik.http.services.forgejo.loadbalancer.server.port=3000
          networks:
            - proxy
            - default