Skip to content

Commit

Permalink
docs: [torrust#739] fix command to run with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Oct 2, 2024
1 parent 15adcb9 commit fdf62e9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,21 @@
//! You can run the index with a pre-built docker image:
//!
//! ```text
//! mkdir -p ./storage/database \
//! cd /tmp \
//! && mkdir torrust-index \
//! && cd torrust-index \
//! && mkdir -p ./storage/index/lib/database \
//! && mkdir -p ./storage/index/log \
//! && mkdir -p ./storage/index/etc \
//! && sqlite3 "./storage/index/lib/database/sqlite3.db" "VACUUM;" \
//! && export USER_ID=1000 \
//! && docker run -it \
//! --user="$USER_ID" \
//! --env USER_ID="$USER_ID" \
//! --publish 3001:3001/tcp \
//! --volume "$(pwd)/storage":"/app/storage" \
//! torrust/index
//! --volume "$(pwd)/storage/index/lib":"/var/lib/torrust/index" \
//! --volume "$(pwd)/storage/index/log":"/var/log/torrust/index" \
//! --volume "$(pwd)/storage/index/etc":"/etc/torrust/index" \
//! torrust/index:develop
//! ```
//!
//! For more information about using docker visit the [tracker docker documentation](https://github.com/torrust/torrust-index/tree/develop/docker).
Expand Down

0 comments on commit fdf62e9

Please sign in to comment.