3 changed files with 62998 additions and 0 deletions
@ -0,0 +1,4 @@
|
||||
FROM mongo:latest |
||||
|
||||
COPY seed.json /seed.json |
||||
CMD mongoimport --host mongodb --db pokemon --collection Pokemon --drop --type json --file /seed.json --jsonArray |
||||
@ -0,0 +1,26 @@
|
||||
version: "3.7" |
||||
services: |
||||
|
||||
mongodb: |
||||
image: mongo:latest |
||||
container_name: mongodb |
||||
environment: |
||||
MONGO_INITDB_ROOT_USERNAME: root |
||||
MONGO_INITDB_ROOT_PASSWORD: example |
||||
|
||||
seed: |
||||
container_name: seed |
||||
build: . |
||||
links: |
||||
- mongodb |
||||
|
||||
mongo-express: |
||||
image: mongo-express:latest |
||||
restart: on-failure |
||||
ports: |
||||
- "8081:8081" |
||||
links: |
||||
- mongodb |
||||
environment: |
||||
ME_CONFIG_MONGODB_ADMINUSERNAME: root |
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: example |
||||
Loading…
Reference in new issue