https://github.com/cha87de/sidekick-confer
dynamic sidekick container for building config files from environment vars
https://github.com/cha87de/sidekick-confer
Last synced: about 2 months ago
JSON representation
dynamic sidekick container for building config files from environment vars
- Host: GitHub
- URL: https://github.com/cha87de/sidekick-confer
- Owner: cha87de
- License: gpl-3.0
- Created: 2019-05-23T11:52:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T13:03:49.000Z (about 7 years ago)
- Last Synced: 2025-01-26T16:44:42.393Z (over 1 year ago)
- Language: Shell
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://hub.docker.com/r/cha87de/sidekick-confer/)
# Base Image for Dynamic Sidekick Config Containers
## Usage example:
Build your image with your template configuration files:
Create a new `Dockerfile` (example with telegraf.conf):
```
FROM cha87de/sidekick-confer
VOLUME /etc/telegraf/
ADD telegraf.conf.tmpl /etc/telegraf/
```
And place a variable in the `telegraf.conf.tmpl` e.g.:
```
...
[[outputs.influxdb]]
urls = ["$INFLUX_SERVER"]
...
```
Build your config image as `user/yourconfig:latest`. During deploy time use environment variables to set the variable in your configuration file:
```
docker run -e INFLUX_SERVER=http://testblabla:8086 user/yourconfig:latest
```
Or use it with docker-compose:
```
config:
image: user/yourconfig:latest
restart: "no"
environment:
- INFLUX_SERVER=http://testblabla:8086
telegraf:
image: telegraf:1.10-alpine
volumes_from:
- config
```