rabin 1 year ago
parent
commit
45422ec4e1
3 changed files with 19 additions and 0 deletions
  1. 3 0
      src/docker/build/db/tidb/Dockerfile
  2. 15 0
      src/docker/conf/web.conf
  3. 1 0
      src/docker/core.conf

+ 3 - 0
src/docker/build/db/tidb/Dockerfile

@@ -0,0 +1,3 @@
+FROM pingcap/tidb:latest
+
+MAINTAINER Rabin "https://github.com/shemic"

+ 15 - 0
src/docker/conf/web.conf

@@ -63,3 +63,18 @@ image = openresty
 port = 80:80,443:443
 volumes = {container}web:/www,{container}conf/web/nginx:/usr/local/openresty/nginx/conf,{container}logs/nginx/openresty_{name}/logs:/var/log/nginx
 command = nginx
+
+[influx]
+image = influxdb
+volumes = {container}conf/db/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
+environment = INFLUXDB_ADMIN_ENABLED=true
+port = 8083:8083,8086:8086
+expose = 8090,8099
+alias = influx -precision rfc3339->influx
+
+[tidb]
+;https://hub.docker.com/r/xuxuclassmate/tidb
+image = tidb
+;volumes = {container}conf/db/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
+;environment = INFLUXDB_ADMIN_ENABLED=true
+port = 4000:4000

+ 1 - 0
src/docker/core.conf

@@ -63,6 +63,7 @@ prometheus			= db/prometheus
 prometheus_node		= db/prometheus/node-exporter
 prometheus_mysqld	= db/prometheus/mysqld-exporter
 graphite			= db/graphite
+tidb                = db/tidb
 
 ;java
 thrift				= java/thrift