Compare commits

..

2 Commits

Author SHA1 Message Date
a6a5fc14f0 Merge pull request 'fix' (#8) from master into dev
Reviewed-on: https://gitea.chocomarsh.com/self/monitoring/pulls/8
2025-06-13 02:01:40 +03:00
Egor Matveev
861f830816 fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 58s
Deploy Dev / Push (pull_request) Successful in 40s
Deploy Dev / Deploy dev (pull_request) Successful in 13s
2025-06-13 02:01:16 +03:00
3 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,8 @@ services:
networks:
- common-infra-nginx-development
- clickhouse-development
environment:
CLICKHOUSE_PASSWORD: $CLICKHOUSE_PASSWORD_DEV
deploy:
mode: replicated
restart_policy:

View File

@ -38,4 +38,6 @@ jobs:
with:
ref: dev
- name: deploy
env:
CLICKHOUSE_PASSWORD_DEV: ${{ secrets.CLICKHOUSE_PASSWORD_DEV }}
run: docker stack deploy --with-registry-auth -c ./.deploy/deploy-dev.yaml infra-development

View File

@ -3,6 +3,7 @@ package storage
import (
"context"
"fmt"
"os"
"github.com/ClickHouse/clickhouse-go/v2"
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
@ -27,6 +28,7 @@ func connect() (*driver.Conn, error) {
Auth: clickhouse.Auth{
Database: "monitoring",
Username: "default",
Password: os.Getenv("CLICKHOUSE_PASSWORD"),
},
TLS: nil,
})