chore: modify restart policy & influx settings

This commit is contained in:
Reinaldy Rafli 2022-01-01 00:40:53 +07:00
parent 3a42f3181f
commit f8db96d79f
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
1 changed files with 13 additions and 11 deletions

View File

@ -1,7 +1,7 @@
services: services:
postgres: postgres:
image: postgres:13.4-alpine image: postgres:13.4-alpine
restart: always restart: unless-stopped
ports: ports:
- 5432:5432 - 5432:5432
environment: environment:
@ -11,7 +11,7 @@ services:
- ./volume/postgres:/var/lib/postgresql/data - ./volume/postgres:/var/lib/postgresql/data
mysql: mysql:
image: mysql:8.0.26 image: mysql:8.0.26
restart: always restart: unless-stopped
ports: ports:
- 3306:3306 - 3306:3306
environment: environment:
@ -22,7 +22,7 @@ services:
- SYS_NICE - SYS_NICE
redis: redis:
image: redis:6.2.6-alpine image: redis:6.2.6-alpine
restart: always restart: unless-stopped
ports: ports:
- 6379:6379 - 6379:6379
volumes: volumes:
@ -30,7 +30,7 @@ services:
- ./volume/redis/data:/data - ./volume/redis/data:/data
mongo: mongo:
image: mongo:4.4.8-focal image: mongo:4.4.8-focal
restart: always restart: unless-stopped
ports: ports:
- 27017:27017 - 27017:27017
environment: environment:
@ -40,7 +40,7 @@ services:
- ./volume/mongo:/data/db - ./volume/mongo:/data/db
couch: couch:
image: couchdb:3.1.1 image: couchdb:3.1.1
restart: always restart: unless-stopped
ports: ports:
- 5984:5984 - 5984:5984
environment: environment:
@ -54,7 +54,7 @@ services:
- "./volume/couch/cfg:/opt/couchdb/etc/local.d" - "./volume/couch/cfg:/opt/couchdb/etc/local.d"
cassandra: cassandra:
image: cassandra:3.11.10 image: cassandra:3.11.10
restart: always restart: unless-stopped
ports: ports:
- 7000:7000 - 7000:7000
- 7001:7001 - 7001:7001
@ -65,7 +65,7 @@ services:
- "./volume/cassandra/:/var/lib/cassandra" - "./volume/cassandra/:/var/lib/cassandra"
elasticsearch: elasticsearch:
image: elasticsearch:7.14.2 image: elasticsearch:7.14.2
restart: always restart: unless-stopped
ports: ports:
- 9200:9200 - 9200:9200
- 9300:9300 - 9300:9300
@ -75,7 +75,7 @@ services:
- "./volume/elasticsearch/:/usr/share/elasticsearch/data" - "./volume/elasticsearch/:/usr/share/elasticsearch/data"
influxdb: influxdb:
image: influxdb:2.1.1-alpine image: influxdb:2.1.1-alpine
restart: always restart: unless-stopped
ports: ports:
- 8086:8086 - 8086:8086
environment: environment:
@ -83,11 +83,13 @@ services:
DOCKER_INFLUXDB_INIT_PASSWORD: password DOCKER_INFLUXDB_INIT_PASSWORD: password
DOCKER_INFLUXDB_INIT_ORG: root DOCKER_INFLUXDB_INIT_ORG: root
DOCKER_INFLUXDB_INIT_BUCKET: public DOCKER_INFLUXDB_INIT_BUCKET: public
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: tQXMrSibyzgpothTPkYWArELdcXiPwQq
volumes: volumes:
- "./volume/influxdb/:/var/lib/influxdb" - "./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: unless-stopped
ports: ports:
- 2083:8081 - 2083:8081
depends_on: depends_on:
@ -97,7 +99,7 @@ services:
ME_CONFIG_MONGODB_ADMINPASSWORD: password ME_CONFIG_MONGODB_ADMINPASSWORD: password
redis-commander: redis-commander:
image: rediscommander/redis-commander:latest image: rediscommander/redis-commander:latest
restart: always restart: unless-stopped
environment: environment:
REDIS_PORT: 6379 REDIS_PORT: 6379
REDIS_HOST: redis REDIS_HOST: redis
@ -107,7 +109,7 @@ services:
- redis - redis
adminer: adminer:
image: adminer:4.8.1-standalone image: adminer:4.8.1-standalone
restart: always restart: unless-stopped
ports: ports:
- 2086:8081 - 2086:8081
depends_on: depends_on: