MPD를 2개 설정 했습니다만.
- server다 보니 mixer가 없어서 volume은 조절이 안됩니다.
- flac 파일은 재생이 안됩니다.
- Simple is BEST concept
- Multi MPD support
Requirements
- Docker, Docker-Compose or Podman
git clone https://github.com/halfenif/toy_mpdclient_streamlit.git
cp ./.env.sample ./.env
cp ./fastapi/.env.sample ./fastapi/.env
cp ./streamlit/.env.sample ./streamlit/.env
./.env
- FOLDER_TARGET="" # MPD music folder
- Don't use symbolic link
- Docker run user is root
- Podman run user is login user
- Be carefull folder and file permission
fastapi/.env
- ENV_TYPE = ".env.sample" > ".env" Display Information
- IS_DEBUG = bool
- MPD_SERVER_LIST = str(json format). Option.
- UI_OPTION_SHORT_FILE_NAME = bool. Display button label short or not
- UI_OPTION_SHORT_FILE_LENGTH = int. Display button label char count
streamlit/.env
- ENV_TYPE = ".env.sample" > ".env" Display Information
- URL_BACKEND = fastAPI container URL
- UI_OPTION_TITLE = str, st.title(), if "" is None
- UI_OPTION_DESC = str, st.write(), if "" is None
- UI_OPTION_SIDEBAR_WIDTH = int, st.sidebar width
docker-compose build
docker-compose up
./rebuild_podman.sh