Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: command to persist database #41

Merged
merged 5 commits into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
command/.cargo
command/repos
command/target
database

settings.env
settings.toml
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ docker compose run --rm ui /lila/bin/trans-dump
./lila-docker format
```
### Optional: Make the database persistent
```bash
docker compose cp mongodb:/data/db ./database
```
Then in `docker-compose.yml`add `- ./database:/data/db` to mongodb volumes
### Berserk (Python library):
To install the development version of [Berserk](https://github.com/lichess-org/berserk) and run a sample script against your local development site:
Expand Down