influxdata / influxdata/influxdata-docker

Database initialization is not working

Open
#232 21 comments 21 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
364
Forks
255
Avg merge
3h 18m
Merged PRs (30d)
7

Description

Tried to create database user and database in docker-compose.yml but it is not working. Nothing gets created. Please advise.

influxdb:
image: influxdb:latest
restart: always
container_name: influxdb
ports:
- "8086:8086"
environment:
- INFLUXDB_ADMIN_USER=USERNAME
- INFLUXDB_ADMIN_PASSWORD=PASS
- INFLUXDB_DB=DBTEST
- INFLUXDB_HTTP_ENABLED=true
- INFLUXDB_HTTP_AUTH_ENABLED=true

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the docker-compose.yml service shown in the issue and inspect the InfluxDB container startup output to determine why the supplied initialization variables have no effect. Compare the configured variables with the image's supported initialization behavior; done means a reproducible configuration creates the requested user and database.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
databases, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.