fixing bug in mongo by changing the vol

This commit is contained in:
Kfir Dayan 2023-05-31 11:34:41 +03:00
parent 6e60bb513a
commit cdffb33aff

View file

@ -6,14 +6,14 @@ services:
ports: ports:
- 27017:27017 - 27017:27017
volumes: volumes:
- data:/data/db - rank_carwler:/data/db
- ./init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js - ./init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js
environment: environment:
- MONGO_INITDB_DATABASE=${DB_DATABASE} - MONGO_INITDB_DATABASE=${DB_DATABASE}
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME} - MONGO_INITDB_ROOT_USERNAME=${DB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD} - MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
platform: linux/arm64/v8 platform: linux/arm64/v8
expose: expose:
- 27017 - 27017
volumes: volumes:
data: rank_carwler: