https://github.com/icinga/docker-icingadb
https://github.com/icinga/docker-icingadb
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/icinga/docker-icingadb
- Owner: Icinga
- License: gpl-2.0
- Archived: true
- Created: 2020-06-24T08:07:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-03T13:27:51.000Z (about 1 year ago)
- Last Synced: 2025-05-06T13:21:29.151Z (about 1 year ago)
- Language: Go
- Size: 117 KB
- Stars: 5
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Icinga DB - Docker image
> [!NOTE]
> With the release of Icinga DB [v1.3.0](https://github.com/Icinga/icingadb/releases/tag/v1.3.0), everything container-related was moved in the [main repository](https://github.com/Icinga/icingadb).
This image integrates [Icinga DB] into your [Docker] environment.
## Usage
```bash
docker network create icinga
docker run --rm -d \
--network icinga \
--name redis-icingadb \
redis
docker run --rm -d \
--network icinga \
--name mariadb-icingadb \
-e MYSQL_RANDOM_ROOT_PASSWORD=1 \
-e MYSQL_DATABASE=icingadb \
-e MYSQL_USER=icingadb \
-e MYSQL_PASSWORD=123456 \
mariadb
docker run -d \
--network icinga \
--restart always \
--name icingadb \
-e ICINGADB_REDIS_HOST=redis-icingadb \
-e ICINGADB_REDIS_PORT=6379 \
-e ICINGADB_REDIS_PASSWORD=123456 \
-e ICINGADB_DATABASE_HOST=mariadb-icingadb \
-e ICINGADB_DATABASE_PORT=3306 \
-e ICINGADB_DATABASE_DATABASE=icingadb \
-e ICINGADB_DATABASE_USER=icingadb \
-e ICINGADB_DATABASE_PASSWORD=123456 \
icinga/icingadb
```
The container doesn't need any volumes and
takes the environment variables shown above.
Each environment variable corresponds to a configuration option of Icinga DB.
E.g. `ICINGADB_REDIS_HOST=redis-icingadb` means:
```yaml
redis:
host: redis-icingadb
```
Consult the [Icinga DB configuration documentation] on what options there are.
### Connect via TLS
```bash
docker run -d \
--network icinga \
--restart always \
--name icingadb \
-e ICINGADB_REDIS_HOST=redis-icingadb \
-e ICINGADB_REDIS_PORT=6379 \
-e ICINGADB_REDIS_PASSWORD=123456 \
-e ICINGADB_REDIS_TLS=true \
-e ICINGADB_REDIS_CERT='[PEM-encoded content or path to a file (in a volume)]' \
-e ICINGADB_REDIS_KEY='[PEM-encoded content or path to a file (in a volume)]' \
-e ICINGADB_REDIS_CA='[PEM-encoded content or path to a file (in a volume)]' \
-e ICINGADB_DATABASE_HOST=mariadb-icingadb \
-e ICINGADB_DATABASE_PORT=3306 \
-e ICINGADB_DATABASE_DATABASE=icingadb \
-e ICINGADB_DATABASE_USER=icingadb \
-e ICINGADB_DATABASE_PASSWORD=123456 \
-e ICINGADB_DATABASE_TLS=true \
-e ICINGADB_DATABASE_CERT='[PEM-encoded content or path to a file (in a volume)]' \
-e ICINGADB_DATABASE_KEY='[PEM-encoded content or path to a file (in a volume)]' \
-e ICINGADB_DATABASE_CA='[PEM-encoded content or path to a file (in a volume)]' \
icinga/icingadb
```
## Build it yourself
```bash
git clone https://github.com/Icinga/icingadb.git
#pushd icingadb
#git checkout v1.0.0
#popd
./build.bash ./icingadb
```
[Icinga DB]: https://github.com/Icinga/icingadb
[Docker]: https://www.docker.com
[Icinga DB configuration documentation]: https://icinga.com/docs/icingadb/latest/doc/03-Configuration/