chore: add docker compose for local tests
ci-agent / build (push) Failing after 1m24s

This commit is contained in:
d3m0k1d
2026-04-04 01:37:33 +03:00
parent 8ab7fbc6b2
commit 5c67c0287e
8 changed files with 1760 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
backend_url: http://backend:8080
label: test-agent-1
services:
- service1
- service2
+5
View File
@@ -0,0 +1,5 @@
database:
token_db: /var/lib/hellreign/tokens.db
clickhouse_host: clickhouse:9000
clickhouse_user: default
clickhouse_password: testpassword
@@ -0,0 +1,16 @@
#!/bin/bash
set -e
clickhouse-client --query "CREATE DATABASE IF NOT EXISTS hellreign;"
clickhouse-client --query "
CREATE TABLE IF NOT EXISTS hellreign.logs (
timestamp DateTime64(3) DEFAULT now(),
level String,
service String,
message String,
host String,
trace_id String
) ENGINE = MergeTree()
ORDER BY (timestamp, service, level);
"
+68 -1
View File
@@ -1,3 +1,70 @@
services:
clickhouse:
image: clickhouse/clickhouse-server:24.8
container_name: hellreign-clickhouse
environment:
CLICKHOUSE_DB: hellreign
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: testpassword
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
ports:
- "8123:8123"
- "9000:9000"
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./clickhouse/init:/docker-entrypoint-initdb.d
networks:
- hellreign
backend:
build:
context: ../backend
dockerfile: dockerfile
container_name: hellreign-backend
environment:
CONFIG_FILE: /etc/hellreign/config.yml
ports:
- "8080:8080"
volumes:
- ./backend/config.yml:/etc/hellreign/config.yml:ro
- backend_data:/var/lib/hellreign
depends_on:
- clickhouse
networks:
- hellreign
frontend:
build:
context: ../frontend
dockerfile: dockerfile
container_name: hellreign-frontend
ports:
- "3000:80"
depends_on:
- backend
networks:
- hellreign
agent:
build:
context: ../agent
dockerfile: dockerfile
container_name: hellreign-agent
environment:
CONFIG_FILE: /etc/hellreign-agent/config.yml
volumes:
- ./agent/config.yml:/etc/hellreign-agent/config.yml:ro
depends_on:
- backend
networks:
- hellreign
volumes:
clickhouse_data:
driver: local
backend_data:
driver: local
networks:
hellreign:
driver: bridge