Comments (3)
Thanks @Rintan . I ended up figuring this out myself; the database was already using WiredTiger and Compose V2 worked with the compose file I had already; no changes needed. I'm still using the older MongoDB image instead of the Bitnami one too. Hopefully this is able to help someone else out, though.
from docker.official.image.
Any updates on this?
Did you ever find this out @Rintan ?
from docker.official.image.
I've tried to use a bitnami mongo image, but it seems to be difficult due to different database structure.
So, I've migrated the database and modified compose.yaml
to be compatible with the older db structure.
#volumes:
# mongodb_data: { driver: local }
services:
rocketchat:
image: rocketchat/rocket.chat:${RELEASE:-latest}
restart: unless-stopped
labels:
traefik.enable: "false"
#traefik.http.routers.rocketchat.rule: Host(`${DOMAIN:-}`)
#traefik.http.routers.rocketchat.tls: "true"
#traefik.http.routers.rocketchat.entrypoints: https
#traefik.http.routers.rocketchat.tls.certresolver: le
environment:
MONGO_URL: "${MONGO_URL:-\
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}&directConnection=true"
MONGO_OPLOG_URL: "${MONGO_OPLOG_URL:\
-mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}&directConnection=true"
ROOT_URL: ${ROOT_URL:-http://localhost:${HOST_PORT:-3000}}
PORT: ${PORT:-3000}
DEPLOY_METHOD: docker
DEPLOY_PLATFORM: ${DEPLOY_PLATFORM:-}
REG_TOKEN: ${REG_TOKEN:-}
depends_on:
- mongodb
expose:
- ${PORT:-3000}
ports:
- "${BIND_IP:-0.0.0.0}:${HOST_PORT:-3000}:${PORT:-3000}"
mongodb:
image: mongo:${MONGODB_VERSION:-5.0}
restart: unless-stopped
volumes:
- ./data/db:/data/db
command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
environment:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}
mongo-init-replica:
image: mongo:${MONGODB_VERSION:-5.0}
command: >
bash -c
"for (( ; ; )); do
mongo mongodb/rocketchat --eval \"
rs.initiate({
_id: 'rs0',
members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&
s=$$? && break || s=$$?;
echo \"Could not reach MongoDB. Waiting 5 secs ...\";
sleep 5;
done; (exit $$s)"
depends_on:
- mongodb
from docker.official.image.
Related Issues (20)
- 5.3.3 release HOT 1
- Invalid interpolation format for "rocketchat" option in service "services": "registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-latest}" HOT 4
- Image for Version 5.4.3 HOT 1
- Global slow down when using jitsi app HOT 1
- transfer data from a dumpfile to a new instance of rocket chat
- Proposition Dockerfile arm64
- No docker images beyond 6.0.0? HOT 7
- Application Error after upgrade to 6.2.0 HOT 1
- update to latest version HOT 1
- Failure to update latest package - Error: Can't find migration version 256 HOT 2
- Issue installing rocket chat on truenas
- Image is using an EOL version of NodeJS HOT 2
- Error on bringing up latest docker compose HOT 4
- Loading animation and attempt to POST to localhost:3000 HOT 7
- keeps loading 3 dots when accessing the domain HOT 4
- No updates since 6.4.2 release? HOT 3
- Update Readme with new Docker Compose command
- [compose.yml] bitnami/mongodb crashes with Illegal instruction on Apple Silicon
- 6.6 docker image creates broken containers (glibcxx_3.4.29) HOT 3
- we need arm v8 thanks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.official.image.