Skip to content

Commit

Permalink
fixed volume docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPensart committed Dec 9, 2023
1 parent 91691dd commit 360b859
Show file tree
Hide file tree
Showing 9 changed files with 741 additions and 365 deletions.
47 changes: 37 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -406,16 +406,17 @@ musicbot local
-h, --help Show this message and exit.
Commands:
artists Artists descriptions
bests Generate bests playlists with some rules
clean (wipe) Clean all musics
folders List folders and some stats
help Print help
playlist Generate a new playlist
remove (delete) Remove one or more music
scan Load musics
sync Copy selected musics with filters to destination folder
watch (watcher) Watch files changes in folders
artists Artists descriptions
bests Generate bests playlists with some rules
clean (wipe) Clean all musics
custom-playlists Generate custom playlists inside music folders (and for Buckethead)
folders List folders and some stats
help Print help
playlist Generate a new playlist
remove (delete) Remove one or more music
scan Load musics
sync Copy selected musics with filters to destination folder
watch (watcher) Watch files changes in folders
musicbot local artists
**********************
Expand Down Expand Up @@ -481,8 +482,34 @@ musicbot local clean
MusicDB options:
--dsn TEXT DSN to MusicBot EdgeDB
--graphql TEXT DSN to MusicBot GrapQL
-y, --yes Confirm action
-h, --help Show this message and exit.
musicbot local custom-playlists
*******************************
.. code-block::
Usage: musicbot local custom-playlists [OPTIONS] SCAN_FOLDER
Options:
MusicDB options:
--dsn TEXT DSN to MusicBot EdgeDB
--graphql TEXT DSN to MusicBot GrapQL
Links options:
--kind, --kinds [all|local|local-http|local-ssh|remote|remote-http|remote-ssh]
Generate musics paths of types [default: local]
--relative / --no-relative Generate relative links [default: no-relative]
Ordering options: [mutually_exclusive]
--shuffle / --no-shuffle Randomize selection [default: no-shuffle]
--interleave / --no-interleave
Interleave tracks by artist [default: no-interleave]
Bests options:
--min-playlist-size INTEGER Minimum size of playlist to write [default: 1]
--coroutines INTEGER Limit number of coroutines [default: 64]
--dry / --no-dry Do not launch real action [default: no-dry]
--fast / --no-fast [default: no-fast]
-h, --help Show this message and exit.
musicbot local folders
**********************
.. code-block::
Expand Down
11 changes: 7 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ services:
EDGEDB_SERVER_PASSWORD: musicbot
EDGEDB_DOCKER_LOG_LEVEL: warning
volumes:
- "./dbschema:/dbschema"
- "./credentials:/root/.config/edgedb/credentials"
- "./data:/var/lib/edgedb/data"
- ./dbschema:/dbschema
- ./credentials:/root/.config/edgedb/credentials
- musicbot-prod-data:/var/lib/edgedb/data
musicbot_db_test:
container_name: musicbot-db-test
image: "edgedb/edgedb:4"
Expand All @@ -30,4 +30,7 @@ services:
EDGEDB_SERVER_PASSWORD: testpass
EDGEDB_SERVER_TLS_CERT_MODE: generate_self_signed
volumes:
- "./dbschema:/dbschema"
- ./dbschema:/dbschema

volumes:
musicbot-prod-data:
7 changes: 7 additions & 0 deletions musicbot/cli/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ def confirm(ctx: click.Context, param: Any, value: bool) -> None: # pylint: dis
type=click.Choice(["json", "table", "m3u"]),
)

coroutines_option = click.option(
"--coroutines",
help="Limit number of coroutines",
default=64,
show_default=True,
)


@beartype
def config_string(ctx: click.Context, param: click.Parameter, value: str | None) -> Any:
Expand Down
Loading

0 comments on commit 360b859

Please sign in to comment.