Comments (8)
"stop" and "up" now work without data loss. Thanks!
from uwazi-docker.
Humm, this repository should work at least with some basic data persistence (even if at the current state is targeted as containerized Uwazi version for local development & testing). So if its not working its a bug.
Extra info:
Actually, is possible to convert this script to docker swarm (https://docs.docker.com/engine/swarm/), but need some refactoring. If you want do it, I would test it and if relatively ok we merge.
Note that this repository is more for who is just testing Uwazi with the less changes possible (idealy someone who do not know very deep how docker works could be just follow some steps and get a hello word working). And note that for production use, would still be possible to, instead of use the elastic search and mongo from this docker container, change de docker-compose.yml file to use a version installed on another place.
from uwazi-docker.
@vasyugan can you try stop and restart with what is documented here https://github.com/fititnt/uwazi-docker#basic-docker-commands ?
In this case, is
# Stop all containers from this uwazi-docker and do not restart again until you explicit ask for it
docker-compose stop
# Using "-d" param to run uwazi and its dependencies on background
docker-compose up -d uwazi
# No "-d" param, start uwazi, MongoDB & Elastic Search and see what is happening inside the containers
docker-compose up uwazi
The docker-compose up (nameoftheservice) is the way to do it. The docker-compose start starts everything, even the GUis for see mongo and elastic search. And also uwazi-installer
that was another way to prepare uwazi with the IS_FIRST_RUN forced to true.
Let me solve that too, so docker-compose start will not start a fresh installation too
from uwazi-docker.
@vasyugan can you test it again to check if docker-compose start
still restart the data?
Also, the master branch already have the Uwazi 1.3, the lastest release, but I did not fully tested all features.
from uwazi-docker.
Just do mention, not today, but in the next days I will provably add some extra command to run the yarn migrate
and yarn reindex
listed here https://github.com/huridocs/uwazi/wiki/Backup-and-restore.
Since the uploaded_data and the mongodb data will be on a separated volume, I'm just not sure at this moment how to document a import/export way to do it that would not create undesired side effects like the one solved with the #22
from uwazi-docker.
I done a few more changes and created a specific issue just for document how to backup and restore data.
One problem with more automation on how to do backup and (in special how to automate restore) is avoid accidental run in special for restore process.
I will not close this issue for now or at least for some days since the recent changes (or some new ones) could still change the issue with backup & restore of the data.
from uwazi-docker.
Great. For now I have a working dockerized Uwazi install running. Thanks. It's really been a steep learning curve (and probably will be)
from uwazi-docker.
I will close this issue (at least for now). No additional problems since the last changes on the docker-uwazi.
from uwazi-docker.
Related Issues (20)
- Store mongodb data on a docker volume
- Automate `yarn migrate` & `yarn reindex` routines on uwazi-docker HOT 1
- Minimal documentation on how to backup and restore with uwazi-docker HOT 1
- service mongo should not publish port 27017 HOT 5
- Document and/or change default behavior on uwazi-docker bind to :3000 for more than just localhost (e.g be public accessibly) HOT 5
- make elasticsearch behave HOT 5
- `FROM node:8-slim` stopped to work HOT 1
- use bind mounts instead of named volumes HOT 1
- Tests with updated version, Uwazi v1.4 HOT 1
- Do `yarn migrate` is need for first install after uwazi v1.4? HOT 3
- ElasticSearch 5.6 for Uwazi v1.4+ HOT 1
- Instructions or mechanism for upgrading HOT 1
- Jessie no longer works HOT 2
- Unmaintained deb package list, not starting HOT 7
- Use Debian Bookworm HOT 5
- rewrite build scripts to accommodate current releases HOT 2
- redis connection in broken state HOT 5
- Document how to start uwazi-docker with test data HOT 3
- Installation error? HOT 9
- Error when saving collection: Transaction numbers are only allowed on a replica set member or mongos 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 uwazi-docker.