Skip to content

Commit

Permalink
added a port for local mongodb developer so vscode can connect to mon…
Browse files Browse the repository at this point in the history
…godb in the container; fixed documentation in script for the example run command
  • Loading branch information
SeriousHorncat committed Sep 23, 2024
1 parent 127b90b commit ddbc484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ services:
volumes:
- ./etc/fixtures/initial-seed/initial-db-seed.sh:/docker-entrypoint-initdb.d/initial-db-seed.sh
- ./etc/fixtures/:/tmp/fixtures
ports:
- 27017:27017
networks:
- rosalution-network
environment:
Expand Down
2 changes: 1 addition & 1 deletion etc/fixtures/create-annotation-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mongosh /tmp/database/create-annotation-manifests.js
Example:
mongosh --host localhost --port 27017 --file /tmp/fixtures/create-annotation-manifest.js overwrite --eval="databaseName='rosalution_db'"
docker exec -it <rosalution_db_container> mongosh /tmp/fixtures/create-annotation-manifest.js --file /tmp/fixtures/create-annotation-manifest.js overwrite --eval="databaseName='rosalution_db'"
docker exec -it <rosalution_db_container> mongosh --file /tmp/fixtures/create-annotation-manifest.js overwrite --eval="databaseName='rosalution_db'"
`

overwrite = process.argv.includes('overwrite')
Expand Down

0 comments on commit ddbc484

Please sign in to comment.