version: "3"
services:
redis:
image: redis:alpine
container_name: redis_db
command: redis-server --appendonly yes
ports:
- 6379:6379
volumes:
- ./data:/data
restart: always
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- 8082:8081
depends_on:
- redis
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: uroot
MONGO_INITDB_ROOT_PASSWORD: usecret
volumes:
- ./mongo-data:/data/db
mongo-express:
image: mongo-express
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: uroot
ME_CONFIG_MONGODB_ADMINPASSWORD: usecret
volumes:
mongo-data:
Comments
Post a Comment