diff --git a/docker-compose.yml b/docker-compose.yml index 652df5f..4a40bf7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,5 +9,13 @@ services: - data:/data restart: unless-stopped + ingester: + build: ingester + ports: + - 8080 + links: + - db:chronix + restart: unless-stopped + volumes: data: diff --git a/ingester/Dockerfile b/ingester/Dockerfile new file mode 100644 index 0000000..135aebe --- /dev/null +++ b/ingester/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:alpine + +RUN apk add --no-cache git &&\ + go get github.com/ChronixDB/chronix.ingester &&\ + apk del git + +EXPOSE 8080 +CMD [ "/go/bin/chronix.ingester" "-chronix-url=http://chronix:8983/solr/chronix"]