Skip to content

Commit

Permalink
Added config files for runner and manager
Browse files Browse the repository at this point in the history
  • Loading branch information
xBlaz3kx committed Aug 26, 2024
1 parent acc8a1e commit 5a52293
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
16 changes: 16 additions & 0 deletions config/manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
observability:
logging:
level: debug
metrics:
enabled: false
address: lgtm-stack:4317

db:
host: postgres:5432
user: scheduler
name: scheduler
password: scheduler
disableTLS: true

http:
address: 0.0.0.0:8000
20 changes: 20 additions & 0 deletions config/runner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
observability:
logging:
level: debug
metrics:
enabled: false
address: lgtm-stack:4317

db:
host: postgres:5432
user: scheduler
name: scheduler
password: scheduler
disableTLS: true

http:
address: 0.0.0.0:8000

jobExecutionSettings:
maxConcurrentJobs: 1
interval: 1m
10 changes: 6 additions & 4 deletions docker-compose.local-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ services:
- MANAGER_DB_NAME=scheduler
- MANAGER_DB_PASSWORD=scheduler
- MANAGER_DB_DISABLETLS=true
- MANAGER_HTTP_ADDRESS=0.0.0.0:8000
- MANAGER_STORAGE_ENCRYPTION_KEY=ishouldbechanged
#volumes:
# - ./cmd/manager/config.yaml:/app/config.yaml
volumes:
- ./config/manager.yaml:/app/config.yaml
depends_on:
- postgres
- migration
Expand All @@ -44,15 +45,16 @@ services:
dockerfile: build/runner/Dockerfile
container_name: runner
restart: always
#volumes:
# - ./cmd/runner/config.yaml:/app/config.yaml
volumes:
- ./config/runner.yaml:/app/config.yaml
environment:
- RUNNER_OBSERVABILITY_LOG_LEVEL=info
- RUNNER_DB_HOST=postgres:5432
- RUNNER_DB_USER=scheduler
- RUNNER_DB_PASSWORD=scheduler
- RUNNER_DB_NAME=scheduler
- RUNNER_DB_DISABLETLS=true
- RUNNER_HTTP_ADDRESS=0.0.0.0:8000
- RUNNER_STORAGE_ENCRYPTION_KEY=ishouldbechanged
depends_on:
- postgres
Expand Down

0 comments on commit 5a52293

Please sign in to comment.