diff --git a/docker-compose.yaml b/docker-compose.yaml index 5b13b55..44fe90c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,14 +6,14 @@ services: ports: - 27017:27017 volumes: - - data:/data/db + - rank_carwler:/data/db - ./init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js environment: - MONGO_INITDB_DATABASE=${DB_DATABASE} - - MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME} - - MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD} + - MONGO_INITDB_ROOT_USERNAME=${DB_USERNAME} + - MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD} platform: linux/arm64/v8 expose: - 27017 volumes: - data: \ No newline at end of file + rank_carwler: \ No newline at end of file