add influxdb

This commit is contained in:
Reinaldy Rafli 2021-12-18 17:08:55 +07:00
parent 46508973d6
commit 3a42f3181f
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
1 changed files with 25 additions and 13 deletions

View File

@ -2,9 +2,9 @@ services:
postgres: postgres:
image: postgres:13.4-alpine image: postgres:13.4-alpine
restart: always restart: always
ports: ports:
- 5432:5432 - 5432:5432
environment: environment:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
volumes: volumes:
@ -12,9 +12,9 @@ services:
mysql: mysql:
image: mysql:8.0.26 image: mysql:8.0.26
restart: always restart: always
ports: ports:
- 3306:3306 - 3306:3306
environment: environment:
MYSQL_ROOT_PASSWORD: password MYSQL_ROOT_PASSWORD: password
volumes: volumes:
- ./volume/mysql:/var/lib/mysql - ./volume/mysql:/var/lib/mysql
@ -23,7 +23,7 @@ services:
redis: redis:
image: redis:6.2.6-alpine image: redis:6.2.6-alpine
restart: always restart: always
ports: ports:
- 6379:6379 - 6379:6379
volumes: volumes:
- ./volume/redis/etc:/usr/local/etc/redis - ./volume/redis/etc:/usr/local/etc/redis
@ -31,19 +31,19 @@ services:
mongo: mongo:
image: mongo:4.4.8-focal image: mongo:4.4.8-focal
restart: always restart: always
ports: ports:
- 27017:27017 - 27017:27017
environment: environment:
MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password MONGO_INITDB_ROOT_PASSWORD: password
volumes: volumes:
- ./volume/mongo:/data/db - ./volume/mongo:/data/db
couch: couch:
image: couchdb:3.1.1 image: couchdb:3.1.1
restart: always restart: always
ports: ports:
- 5984:5984 - 5984:5984
environment: environment:
COUCHDB_USER: root COUCHDB_USER: root
COUCHDB_PASSWORD: password COUCHDB_PASSWORD: password
# I found these secret and flags on some Github repo, so I thought I'd use it and it worked. # I found these secret and flags on some Github repo, so I thought I'd use it and it worked.
@ -73,14 +73,26 @@ services:
- discovery.type=single-node - discovery.type=single-node
volumes: volumes:
- "./volume/elasticsearch/:/usr/share/elasticsearch/data" - "./volume/elasticsearch/:/usr/share/elasticsearch/data"
influxdb:
image: influxdb:2.1.1-alpine
restart: always
ports:
- 8086:8086
environment:
DOCKER_INFLUXDB_INIT_USERNAME: root
DOCKER_INFLUXDB_INIT_PASSWORD: password
DOCKER_INFLUXDB_INIT_ORG: root
DOCKER_INFLUXDB_INIT_BUCKET: public
volumes:
- "./volume/influxdb/:/var/lib/influxdb"
mongo-express: mongo-express:
image: mongo-express:1.0.0-alpha.4 image: mongo-express:1.0.0-alpha.4
restart: always restart: always
ports: ports:
- 2083:8081 - 2083:8081
depends_on: depends_on:
- mongo - mongo
environment: environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password ME_CONFIG_MONGODB_ADMINPASSWORD: password
redis-commander: redis-commander:
@ -96,7 +108,7 @@ services:
adminer: adminer:
image: adminer:4.8.1-standalone image: adminer:4.8.1-standalone
restart: always restart: always
ports: ports:
- 2086:8081 - 2086:8081
depends_on: depends_on:
- mysql - mysql