From 12db0fb03db06c8059d2f2fb38599f3a69629ee3 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Mon, 30 Jun 2025 11:24:05 -0600 Subject: [PATCH] copilot api --- .github/workflows/update-home-server.yml | 1 + home-server/docker-compose.yml | 57 ++++-------------------- 2 files changed, 10 insertions(+), 48 deletions(-) diff --git a/.github/workflows/update-home-server.yml b/.github/workflows/update-home-server.yml index f1cf9bf..d7325d3 100644 --- a/.github/workflows/update-home-server.yml +++ b/.github/workflows/update-home-server.yml @@ -25,6 +25,7 @@ jobs: HOMEASSISTANT_TOKEN: ${{ secrets.HOMEASSISTANT_TOKEN }} GRAFANA_PASSWORD: ${{ secrets.GRAFANA_PASSWORD }} CLOUDFLARE_CONFIG: ${{ secrets.CLOUDFLARE_CONFIG }} + COPILOT_TOKEN: ${{ secrets.COPILOT_TOKEN }} working-directory: /home/github/infrastructure/infrastructure run: | # echo "$CLOUDFLARE_CONFIG" > /data/cloudflare/cloudflare.ini diff --git a/home-server/docker-compose.yml b/home-server/docker-compose.yml index 4da74cc..031a116 100644 --- a/home-server/docker-compose.yml +++ b/home-server/docker-compose.yml @@ -230,54 +230,15 @@ services: networks: - proxy - # docker-registry: - # image: registry:2 - # container_name: docker-registry - # restart: unless-stopped - # ports: - # - "5000:5000" - # environment: - # REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data - # REGISTRY_HTTP_TLS_CERTIFICATE: /etc/docker/certs.d/server.alexmickelson.guru/cert.pem - # REGISTRY_HTTP_TLS_KEY: /etc/docker/certs.d/server.alexmickelson.guru/key.pem - # volumes: - # - /data/docker-registry:/data - # depends_on: - # - reverse-proxy - # networks: - # - proxy - # github-actions-exporter: - # # ports: - # # - 9999:9999 - # image: ghcr.io/labbs/github-actions-exporter - # environment: - # - GITHUB_REPOS=alexmickelson/infrastructure - # - GITHUB_TOKEN=${MY_GITHUB_TOKEN} - - - # pihole: - # container_name: pihole - # image: pihole/pihole:latest - # # For DHCP it is recommended to remove these ports and instead add: network_mode: "host" - # ports: - # # - "0.0.0.0:53:53/tcp" - # # - "0.0.0.0:53:53/udp" - # # - "127.0.0.1:53:53/tcp" - # # - "127.0.0.1:53:53/udp" - # - "100.122.128.107:53:53/tcp" - # - "100.122.128.107:53:53/udp" - # # # - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server - # - "8580:80" - # environment: - # TZ: 'America/Denver' - # # WEBPASSWORD: 'set a secure password here or it will be random' - # volumes: - # - '/data/pihole/etc-pihole:/etc/pihole' - # - '/data/pihole/etc-dnsmasq.d:/etc/dnsmasq.d' - # # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities - # cap_add: - # - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed - # restart: unless-stopped + copilot-api: + image: node:latest + working_dir: /app + command: sh -c "npx copilot-api@latest start --github-token $COPILOT_TOKEN" + environment: + - COPILOT_TOKEN=${COPILOT_TOKEN} + ports: + - "4444:4444" + restart: unless-stopped networks: proxy: