Skip to content

Commit

Permalink
TO-185 Seperate mongo db with website images - skip-changelog
Browse files Browse the repository at this point in the history
- Fix wrong mongo volume
  • Loading branch information
nqhoan-axonivy committed Aug 15, 2024
1 parent 999db61 commit 76f49c2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions marketplace-build/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Get starts with Marketplace build

### Set up MongoDB with authentication mode
* Navigate to ``marketplace-build/config/mongodb`` and execute the ``docker-compose up -d`` to start MongoDB with non-auth mode and create a root admin user.
* Navigate to ``marketplace-build/config/mongodb`` and execute the ``docker-compose -f non-authen-docker-compose.yml up -d`` to start MongoDB with non-auth mode and create a root admin user.

* [Optional] Execute authentication test for the created user
```
Expand All @@ -23,7 +23,7 @@ This command should return the ``OK`` code

* Run ``docker-compose up -d --build`` to start a Marketplace DEV at the local

> In case you want to set up the MongoDB as a standalone compose. Please run `docker-compose -f mongodb-docker-compose.yml up`
> In case you want to set up the MongoDB as a standalone compose. Please run `docker-compose -f authen-docker-compose.yml up -d` in ``marketplace-build/config/mongodb``
### Docker release
To release a new version for marketplace images, please trigger the ``Docker Release`` actions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services:
mongodb:
container_name: mongodb
build:
context: ../config/mongodb
dockerfile: Dockerfile
restart: always
ports:
Expand All @@ -14,7 +13,7 @@ services:
MONGODB_INITDB_ROOT_PASSWORD: ${MONGODB_INITDB_ROOT_PASSWORD}
volumes:
- mongodata:/data/db
- ../config/mongodb/mongod.conf:/etc/mongod.conf
- ./mongod.conf:/etc/mongod.conf

volumes:
mongodata:
3 changes: 0 additions & 3 deletions marketplace-build/dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,3 @@ services:
- BUILD_VERSION=${BUILD_VERSION}
ports:
- "8080:8080"

volumes:
mongodata:

0 comments on commit 76f49c2

Please sign in to comment.