1
1
# saya: Japanese DTV backend service with powerful features
2
2
3
3
[ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-1.4.21-blue )] ( https://kotlinlang.org )
4
- [ ![ Docker Build Status] ( https://img.shields.io/docker/build/slashnephy/saya )] ( https://hub.docker.com/r/slashnephy/saya )
4
+ [ ![ GitHub release (latest by date)] ( https://img.shields.io/github/v/release/SlashNephy/saya )] ( https://github.com/SlashNephy/saya/releases )
5
+ [ ![ GitHub Workflow Status] ( https://img.shields.io/github/workflow/status/SlashNephy/saya/Docker )] ( https://hub.docker.com/r/slashnephy/saya )
5
6
[ ![ Docker Image Size (latest by date)] ( https://img.shields.io/docker/image-size/slashnephy/saya )] ( https://hub.docker.com/r/slashnephy/saya )
7
+ [ ![ Docker Pulls] ( https://img.shields.io/docker/pulls/slashnephy/saya )] ( https://hub.docker.com/r/slashnephy/saya )
6
8
[ ![ license] ( https://img.shields.io/github/license/SlashNephy/saya )] ( https://github.com/SlashNephy/saya/blob/master/LICENSE )
7
9
[ ![ issues] ( https://img.shields.io/github/issues/SlashNephy/saya )] ( https://github.com/SlashNephy/saya/issues )
8
10
[ ![ pull requests] ( https://img.shields.io/github/issues-pr/SlashNephy/saya )] ( https://github.com/SlashNephy/saya/pulls )
9
11
10
12
saya is still in heavy development.
11
13
12
- - [ REST API docs] ( https://atmos.starry.blue /saya )
14
+ - [ REST API docs] ( https://slashnephy.github.io /saya )
13
15
- [ Roadmap] ( https://github.com/SlashNephy/saya/projects/1 )
14
16
15
17
---
@@ -34,14 +36,25 @@ saya is still in heavy development.
34
36
次のプロジェクトとの併用を想定しています。
35
37
36
38
- [ Chinachu/Mirakurun] ( https://github.com/Chinachu/Mirakurun ) or [ mirakc/mirakc] ( https://github.com/mirakc/mirakc )
37
- - Mirakurun と mirakc のどちらでも動作します。
39
+ - Mirakurun と mirakc のどちらでも動作します。なくても動作しますが一部制約が生じます。
38
40
- [ l3tnun/EPGStation] ( https://github.com/l3tnun/EPGStation )
41
+ - saya を動作させる上では不要です。elaina 上で番組を再生する場合に必要です。
39
42
- [ ci7lus/elaina] ( https://github.com/ci7lus/elaina )
43
+ - EPGStation を介した番組プレイヤーです。saya の API をフロントエンドで利用しています。
40
44
41
- # Setup
45
+ # Docker
42
46
43
47
環境構築が容易なので Docker で導入することをおすすめします。
44
48
49
+ 現在のベースイメージは ` alpine ` です。いくつかタグを用意しています。
50
+
51
+ - ` :latest `
52
+ master ブランチへのプッシュの際にビルドされます。安定しています。
53
+ - ` :dev `
54
+ dev ブランチへのプッシュの際にビルドされます。開発版のため, 不安定である可能性があります。
55
+ - ` :v<tag> `
56
+ GitHub 上のリリースに対応します。
57
+
45
58
` docker-compose.yml `
46
59
47
60
``` yaml
@@ -53,7 +66,7 @@ services:
53
66
image : slashnephy/saya:latest
54
67
restart : always
55
68
ports :
56
- - 1017:1017/tcp
69
+ - 1017:1017/tcp # いれいな
57
70
# 環境変数で各種設定を行います
58
71
# () 内の値はデフォルト値を示します
59
72
environment :
@@ -64,6 +77,9 @@ services:
64
77
# HTTP サーバのベース URI ("/")
65
78
# リバースプロキシ時に直下以外に置きたい場合に変更します
66
79
SAYA_BASE_URI : /
80
+ # ログレベル ("INFO")
81
+ # 利用可能な値: ALL, TRACE, DEBUG, INFO, WARN, ERROR, OFF
82
+ SAYA_LOG : DEBUG
67
83
# Mirakurun のホスト, ポート番号 ("mirakurun", 40772)
68
84
MIRAKURUN_HOST : mirakurun
69
85
MIRAKURUN_PORT : 40772
@@ -76,13 +92,38 @@ services:
76
92
TWITTER_AT : xxx
77
93
TWITTER_ATS : xxx
78
94
95
+ elaina :
96
+ container_name : elaina
97
+ image : ci7lus/elaina:latest
98
+ restart : always
99
+ ports :
100
+ - 1234:1234/tcp
101
+
79
102
mirakurun :
80
103
epgstation :
81
104
# https://github.com/l3tnun/docker-mirakurun-epgstation 等を参考にしてください。
82
105
# サービス名, ポート番号等の変更がある場合には `MIRAKURUN_HOST`, `MIRAKURUN_PORT` の修正が必要になります。
83
106
```
84
107
85
- ` http://localhost:1017/ ` にサーバが起動しているはずです。
108
+ ``` console
109
+ # イメージ更新
110
+ docker pull slashnephy/saya:latest
111
+
112
+ # 起動
113
+ docker-compose up -d
114
+
115
+ # ログ表示
116
+ docker-compose logs -f
117
+
118
+ # 停止
119
+ docker-compose down
120
+ ```
121
+
122
+ up すると ` http://localhost:1017/ ` に saya が, ` http://localhost:1234/ ` に elaina が起動しているはずです。
123
+
124
+ # Endpoints
125
+
126
+ TODO...
86
127
87
128
# Acknowledgments
88
129
0 commit comments