-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
533de20
commit 5358fb2
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
set -o allexport | ||
. $PWD/apps/playnite-web/local.env | ||
set +o allexport | ||
|
||
docker stop playnite-web-db mqtt || true | ||
docker container rm playnite-web-db mqtt || true | ||
|
||
docker run --name playnite-web-db -d \ | ||
-p 27017:27017 \ | ||
-e MONGO_INITDB_ROOT_USERNAME=$DB_USERNAME \ | ||
-e MONGO_INITDB_ROOT_PASSWORD=$DB_PASSWORD \ | ||
-v $PWD/.data/games:/data/backup/games \ | ||
mongo:7.0.3-jammy | ||
|
||
docker exec -t playnite-web-db mongorestore --nsInclude games.* /data/backup | ||
|
||
rm -rf apps/playnite-web/public/assets-by-id | ||
cp -r .data/asset-by-id apps/playnite-web/public/assets | ||
|
||
docker run --name mqtt -d \ | ||
-p 1883:1883 \ | ||
-v $PWD/.data/mqtt/config:/mosquitto/config \ | ||
eclipse-mosquitto:latest | ||
|
||
echo 'Dependent services started.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters