1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-02 03:37:40 +02:00
This commit is contained in:
kev 2016-12-13 19:34:39 +08:00
parent 321d8a863d
commit 4344c5d8f2

View File

@ -37,6 +37,27 @@ influxdb:
## up and running ## up and running
```bash
$ docker-compose up -d
$ docker-compose exec influxdb influx
>>> show databases
name: databases
name
----
_internal
db_name
>>> use db_name
Using database db_name
>>> show series
key
---
cpu
>>> quit
```
- Open url: <http://localhost:8083> - Open url: <http://localhost:8083>
- Create user: `CREATE USER "username" WITH PASSWORD 'password'` - Create user: `CREATE USER "username" WITH PASSWORD 'password'`
- Create database: `CREATE DATABASE "db_name"` - Create database: `CREATE DATABASE "db_name"`