mirror of
https://github.com/Steffo99/unimore-bda-1.git
synced 2024-11-22 14:24:18 +00:00
29 lines
599 B
YAML
29 lines
599 B
YAML
|
version: "3.9"
|
||
|
|
||
|
|
||
|
services:
|
||
|
mongo:
|
||
|
image: "mongo:6.0.2-focal"
|
||
|
environment:
|
||
|
MONGO_INITDB_ROOT_USERNAME: "unimore"
|
||
|
MONGO_INITDB_ROOT_PASSWORD: "unimore"
|
||
|
MONGO_INITDB_DATABASE: "amazon"
|
||
|
|
||
|
mongoimport:
|
||
|
image: "mongo:6.0.2-focal"
|
||
|
volumes:
|
||
|
- "./seed:/seed"
|
||
|
entrypoint: >-
|
||
|
mongoimport
|
||
|
--host mongo
|
||
|
--db amazon
|
||
|
--authenticationDatabase admin
|
||
|
--username unimore
|
||
|
--password unimore
|
||
|
--collection meta
|
||
|
--type json
|
||
|
--file /seed/metaexport.json
|
||
|
depends_on:
|
||
|
mongo:
|
||
|
condition: service_started
|