bsition/docker-compose.yml

52 lines
1.2 KiB
YAML

version: "3.8"
services:
mongo:
image: mongo
container_name: bsition-mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- ./data/mongo/db:/data/db
- ./data/mongo/dev.archive:/Databases/dev.archive
- ./data/mongo/production:/Databases/production
postgres:
image: postgres
container_name: bsition-postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: bd2
volumes:
- ./data/postgres:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.2
container_name: bsition-elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
redis:
image: redislabs/rebloom
container_name: bsition-redis
sysctls:
- net.core.somaxconn=512
ports:
- "6379:6379"
volumes:
- ./data/redis:/data