databases/docker-compose.yml

118 lines
2.9 KiB
YAML
Raw Normal View History

2021-02-24 07:39:07 +00:00
services:
postgres:
2021-08-17 15:41:00 +00:00
image: postgres:13.4-alpine
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
2021-02-24 07:39:07 +00:00
- 5432:5432
2021-12-18 10:08:55 +00:00
environment:
2021-02-24 07:39:07 +00:00
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- ./volume/postgres:/var/lib/postgresql/data
mysql:
2021-08-17 15:41:00 +00:00
image: mysql:8.0.26
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
2021-02-24 07:39:07 +00:00
- 3306:3306
2021-12-18 10:08:55 +00:00
environment:
2021-02-24 07:39:07 +00:00
MYSQL_ROOT_PASSWORD: password
volumes:
- ./volume/mysql:/var/lib/mysql
cap_add:
- SYS_NICE
redis:
2021-11-12 04:26:05 +00:00
image: redis:6.2.6-alpine
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
2021-02-24 07:39:07 +00:00
- 6379:6379
volumes:
- ./volume/redis/etc:/usr/local/etc/redis
- ./volume/redis/data:/data
mongo:
2021-08-17 16:20:09 +00:00
image: mongo:4.4.8-focal
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
2021-02-24 07:39:07 +00:00
- 27017:27017
2021-12-18 10:08:55 +00:00
environment:
2021-02-24 07:39:07 +00:00
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
2021-12-18 10:08:55 +00:00
volumes:
2021-02-24 07:39:07 +00:00
- ./volume/mongo:/data/db
couch:
image: couchdb:3.1.1
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
2021-02-24 07:39:07 +00:00
- 5984:5984
2021-12-18 10:08:55 +00:00
environment:
2021-02-24 07:39:07 +00:00
COUCHDB_USER: root
COUCHDB_PASSWORD: password
# I found these secret and flags on some Github repo, so I thought I'd use it and it worked.
COUCHDB_SECRET: 0ef656e4-afa6-11ea-b3de-0242ac130004
ERL_FLAGS: "-setcookie 556d8dd-e921-4e84-8f4c-011a69969724"
volumes:
- "./volume/couch/data:/opt/couchdb/data"
- "./volume/couch/cfg:/opt/couchdb/etc/local.d"
2021-05-17 09:56:59 +00:00
cassandra:
image: cassandra:3.11.10
restart: unless-stopped
2021-05-17 09:56:59 +00:00
ports:
- 7000:7000
- 7001:7001
- 7199:7199
- 9042:9042
- 9160:9160
volumes:
- "./volume/cassandra/:/var/lib/cassandra"
2021-11-12 04:26:05 +00:00
elasticsearch:
image: elasticsearch:7.14.2
restart: unless-stopped
2021-11-12 04:26:05 +00:00
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
volumes:
- "./volume/elasticsearch/:/usr/share/elasticsearch/data"
2021-12-18 10:08:55 +00:00
influxdb:
image: influxdb:2.1.1-alpine
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
- 8086:8086
environment:
DOCKER_INFLUXDB_INIT_USERNAME: root
DOCKER_INFLUXDB_INIT_PASSWORD: password
DOCKER_INFLUXDB_INIT_ORG: root
DOCKER_INFLUXDB_INIT_BUCKET: public
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: tQXMrSibyzgpothTPkYWArELdcXiPwQq
2021-12-18 10:08:55 +00:00
volumes:
- "./volume/influxdb/:/var/lib/influxdb"
2021-02-24 07:39:07 +00:00
mongo-express:
2021-06-19 10:59:08 +00:00
image: mongo-express:1.0.0-alpha.4
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
2021-02-24 07:39:07 +00:00
- 2083:8081
depends_on:
- mongo
2021-12-18 10:08:55 +00:00
environment:
2021-02-24 07:39:07 +00:00
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
redis-commander:
image: rediscommander/redis-commander:latest
restart: unless-stopped
2021-02-24 07:39:07 +00:00
environment:
REDIS_PORT: 6379
REDIS_HOST: redis
ports:
- 2084:8081
depends_on:
- redis
adminer:
2021-06-19 10:59:08 +00:00
image: adminer:4.8.1-standalone
restart: unless-stopped
2021-12-18 10:08:55 +00:00
ports:
2021-02-24 07:39:07 +00:00
- 2086:8081
depends_on:
- mysql
- postgres