ecomm/docker-compose.yaml

19 lines
477 B
YAML
Raw Normal View History

2023-06-08 11:05:28 +00:00
version: '3'
services:
mongodb:
image: arm64v8/mongo:4.0
restart: always
ports:
- 27017:27017
volumes:
- structshare_vol:/data/db
- ./init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js
environment:
- MONGO_INITDB_DATABASE=${DB_DATABASE}
- MONGO_INITDB_ROOT_USERNAME=${DB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
platform: linux/arm64/v8
expose:
- 27017
volumes:
structshare_vol: