eventman/docs/DOCKER.md

18 lines
1 KiB
Markdown
Raw Normal View History

2017-11-28 23:21:58 +01:00
# Docker container
EventMan(ager) requires MongoDB to run.
You can use docker-compose.yml to have a complete environment. Run: `docker-compose up --build`
2017-11-30 18:40:34 +01:00
Please notice that the *qrcode_reader.py* script is not meant to be run in a Docker container.
2017-11-28 23:21:58 +01:00
The data is stored in the *eventman_data* volume: do not cancel it.
2017-11-30 18:40:34 +01:00
The local *data* directory is mounted in the container: you can modify anything inside of it and changes will be reflected immediately in the running instance.
In the *docker-tools* directory there is a set of tools to build and run another container to dump and restore the database; you need the docker-compose running, to execute them. From that directory you can:
2017-11-28 23:21:58 +01:00
2017-11-29 08:59:58 +01:00
- **dump.sh**: dump the current database in a file like *eventman-dump-2017-11-28T21:57:43.tgz*
- **restore.sh**: *eventman-dump-2017-11-28T21:57:43.tgz*: restore the given dump. Notice that the current database is completely removed, so DO NOT restore a dump if you don't have a backup of the current data
- **shell.sh**: open a shell for the database
2017-11-28 23:21:58 +01:00