docker-compose: move configuration files to config/

This commit is contained in:
Vincent Bernat
2023-02-12 15:51:47 +01:00
parent 895c34fa82
commit e148a8d2c9
10 changed files with 15 additions and 13 deletions

View File

@@ -201,7 +201,7 @@ jobs:
tar zcvf docker-compose-quickstart.tar.gz \ tar zcvf docker-compose-quickstart.tar.gz \
docker-compose.yml docker-compose-demo.yml .env \ docker-compose.yml docker-compose-demo.yml .env \
orchestrator/clickhouse/data/docker-entrypoint.sh \ orchestrator/clickhouse/data/docker-entrypoint.sh \
akvorado*.yaml config/*.yaml
# Publish release # Publish release
- name: Publish release - name: Publish release

View File

@@ -1 +1 @@
../../../../akvorado.yaml ../../../../config/akvorado.yaml

View File

@@ -57,8 +57,8 @@ clickhouse:
# .prefixes[] | # .prefixes[] |
# { prefix: (.ipv4Prefix // .ipv6Prefix), tenant: "google-cloud", region: .scope } # { prefix: (.ipv4Prefix // .ipv6Prefix), tenant: "google-cloud", region: .scope }
inlet: !include "akvorado-inlet.yaml" inlet: !include "inlet.yaml"
console: !include "akvorado-console.yaml" console: !include "console.yaml"
# Remove the following line if you don't want to get demo data # Remove the following line if you don't want to get demo data
demo-exporter: !include "akvorado-demo.yaml" demo-exporter: !include "demo.yaml"

View File

@@ -49,7 +49,7 @@ documentation.
You can get all the expanded configuration (with default values) with You can get all the expanded configuration (with default values) with
`docker-compose exec akvorado-orchestrator akvorado orchestrator `docker-compose exec akvorado-orchestrator akvorado orchestrator
--check --dump /etc/akvorado.yaml`. --check --dump /etc/akvorado/akvorado.yaml`.
Take a look at the `docker-compose.yml` file if you want to setup the Take a look at the `docker-compose.yml` file if you want to setup the
GeoIP database. It requires two environment variables to fetch them GeoIP database. It requires two environment variables to fetch them

View File

@@ -1,9 +1,9 @@
# Configuration # Configuration
The orchestrator service is configured through a YAML file and The orchestrator service is configured through YAML files (shipped in the
includes the configuration of the other services. Other services are `config/` directory) and includes the configuration of the other services. Other
expected to query the orchestrator through HTTP on start to retrieve services are expected to query the orchestrator through HTTP on start to
their configuration. retrieve their configuration.
The default configuration can be obtained with `docker-compose exec The default configuration can be obtained with `docker-compose exec
akvorado-orchestrator akvorado orchestrator --dump --check /dev/null`. Note that akvorado-orchestrator akvorado orchestrator --dump --check /dev/null`. Note that

View File

@@ -13,7 +13,9 @@ identified with a specific icon:
## Unreleased ## Unreleased
- 🌱 *common*: accept an `!include` tag to include other YAML files in `akvorado.yaml` - 💥 *docker-compose*: the configuration files are now shipped in a `config/`
directory: you need to move your `akvorado.yaml` in `config/` as well
- 🌱 *orchestrator*: accept an `!include` tag to include other YAML files in `akvorado.yaml`
## 1.7.2 - 2023-02-12 ## 1.7.2 - 2023-02-12

View File

@@ -69,9 +69,9 @@ services:
akvorado-orchestrator: akvorado-orchestrator:
<<: *akvorado-image <<: *akvorado-image
restart: unless-stopped restart: unless-stopped
command: orchestrator /etc/akvorado.yaml command: orchestrator /etc/akvorado/akvorado.yaml
volumes: volumes:
- ./akvorado.yaml:/etc/akvorado.yaml:ro - ./config:/etc/akvorado:ro
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.akvorado-orchestrator.entrypoints=private # it exposes configuration files with passwords - traefik.http.routers.akvorado-orchestrator.entrypoints=private # it exposes configuration files with passwords