manage-accounts-service/infra/docker/docker-compose.yaml
2023-08-13 11:51:54 +03:00

32 lines
656 B
YAML

version: "3"
services:
redis:
image: redis:latest
container_name: my-redis
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
mongodb:
image: arm64v8/mongo:4.0
container_name: my-mongo
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data_vol:/data/db
- ./mongo-init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js
platform: linux/arm64/v8
environment:
- MONGO_INITDB_DATABASE=admin
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
expose:
- 27017
volumes:
redis_data:
mongodb_data_vol: