From 53bb8c18d8de136f32acc08e27454857f24d0407 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 23 Jan 2025 12:52:56 -0500 Subject: [PATCH] Adding Sourcebot service. --- ansible/app-configs/sourcebot_config.json.j2 | 19 +++++++++++++ docker-compose.yml | 29 +++++++++++++++++--- 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 ansible/app-configs/sourcebot_config.json.j2 diff --git a/ansible/app-configs/sourcebot_config.json.j2 b/ansible/app-configs/sourcebot_config.json.j2 new file mode 100644 index 00000000..5a522c03 --- /dev/null +++ b/ansible/app-configs/sourcebot_config.json.j2 @@ -0,0 +1,19 @@ +{% set vault_addr = 'https://vault.trez.wtf' %} +{% set secrets_path = 'rinoa-docker/env' %} + +{ + "$schema": "../schemas/v2/index.json", + "repos": [ + { + "type": "gitea", + "token": "{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['GITEA_SONARQUBE_BOT_GITEA_TOKEN'] }}", + "url": "https://git.trez.wtf", + "revisions": { + "branches": [ + "main", + "*" + ] + } + } + ] +} diff --git a/docker-compose.yml b/docker-compose.yml index 86c2b440..d010797b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2094,22 +2094,22 @@ services: target: 8003 restart: always volumes: - - source: ${DOCKER_VOLUME_CONFIG}/invoice_ninja/app/public + - source: ${DOCKER_VOLUME_CONFIG}/invoice-ninja/app/public target: /var/www/app/public type: bind bind: create_host_path: true - - source: ${DOCKER_VOLUME_CONFIG}/invoice_ninja/app/storage + - source: ${DOCKER_VOLUME_CONFIG}/invoice-ninja/app/storage target: /var/www/app/storage type: bind bind: create_host_path: true - - source: ${DOCKER_VOLUME_CONFIG}/invoice_ninja/php/php.ini + - source: ${DOCKER_VOLUME_CONFIG}/invoice-ninja/php/php.ini target: /usr/local/etc/php/php.ini type: bind bind: create_host_path: true - - source: ${DOCKER_VOLUME_CONFIG}/invoice_ninja/php/php-cli.ini + - source: ${DOCKER_VOLUME_CONFIG}/invoice-ninja/php/php-cli.ini target: /usr/local/etc/php/php-cli.ini type: bind bind: @@ -4770,6 +4770,27 @@ services: type: bind bind: create_host_path: true + sourcebot: + container_name: sourcebot + environment: + CONFIG_PATH: /data/config.json + image: ghcr.io/sourcebot-dev/sourcebot:latest + labels: + homepage.name: Sourcebot + homepage.group: Code/DevOps + homepage.description: Self-hosted internet performance tracking + homepage.href: https://source.${MY_TLD} + homepage.icon: /icons/sourcebot.png + swag: enable + swag_proto: http + swag_url: source.${MY_TLD} + swag.uptime-kuma.enabled: true + swag.uptime-kuma.monitor.url: https://source.${MY_TLD} + ports: + - 45251:3000 + restart: unless-stopped + volumes: + - ${DOCKER_VOLUME_CONFIG}/sourcebot:/data speedtest-tracker: container_name: speedtest-tracker image: lscr.io/linuxserver/speedtest-tracker:latest