jpsonicをDockerでセットアップ

自分用メモ


準備

作業ディレクトリに移動後

mkdir jpsonic
cd jpsonic
mkdir -p install/target/dependency

https://github.com/tesshucom/jpsonic/releases

から最新版のjpsonic.warをゲットして、install/target/dependency/にコピー。

https://github.com/tesshucom/jpsonic/tree/master/install/docker

にあるファイル一式をinstall/にコピー


docker-compose


docker-compose.yml

version: '2'

services:
web:
build: "./install"
restart: always
ports:
- 4040:4040
volumes:
- ./music:/jpsonic/music
- ./playlists:/jpsonic/playlists
- ./podcasts:/jpsonic/podcasts
- ./data:/jpsonic/data
environment:
- JAVA_OPTS="-Xmx512m"
networks:
- test-network

networks:
test-network:
external: true



参考URL

JpsonicをDockerで動かす

https://soryumi.liliso.com/archives/3698