-
-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathdocker-compose.yml
71 lines (64 loc) · 2.4 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
mirakurun:
# `latest` can be changed to fix the version
# `latest` の部分を編集するとバージョンを固定できます
# available tags: https://hub.docker.com/r/chinachu/mirakurun/tags
image: chinachu/mirakurun:${MIRAKURUN_IMAGE_TAG:-latest}
# 環境変数
environment:
TZ: Asia/Tokyo
# set to "1" to disable pcscd
# pcscd を無効にする場合は "1"
DISABLE_PCSCD: "${DISABLE_PCSCD:-0}"
# set to "1" to disable fetch/build the B25 test decoder command
# B25 テストコマンドの取得とビルドを無効にする場合は "1"
DISABLE_B25_TEST: "${DISABLE_B25_TEST:-0}"
# comment out below if you commented out `network_mode: host`
# `network_mode: host` をコメントアウトする場合はここもコメントアウト
DOCKER_NETWORK: host
# set hostname if accesing by hostname (other than IP address)
# ブラウザから IP アドレス以外でアクセスする場合はホスト名を設定
#hostname: localhost
# --
# for debug
#LOG_LEVEL: "3"
#DEBUG: "true"
# comment out `devices:` if you commented out all devices
# `devices` を全てコメントアウトした場合は `devices:` もコメントアウト
#devices:
# if you use card readers
# カードリーダーを使う場合
#- /dev/bus:/dev/bus
# if use DVB devices
# DVB チューナーを使う場合
#- /dev/dvb:/dev/dvb
volumes:
# you can change to any location if you want.
- /opt/mirakurun/run:/var/run
- /opt/mirakurun/opt:/opt
- /opt/mirakurun/config:/app-config
- /opt/mirakurun/data:/app-data
# if use host's pcscd (DISABLE_PCSCD=1)
# ホストの pcscd を使う場合 (DISABLE_PCSCD=1)
#- /var/run/pcscd/pcscd.comm:/var/run/pcscd/pcscd.comm
# add all devices (for development purposes)
# 全てのデバイスを追加 (開発用)
- /dev:/dev
container_name: mirakurun
build:
context: ../
dockerfile: docker/${DOCKERFILE:-Dockerfile}
network_mode: host
cap_add:
- SYS_ADMIN
- SYS_NICE
device_cgroup_rules:
- 'c *:* rmw'
tmpfs:
- /tmp
restart: always
logging:
driver: json-file
options:
max-file: "1"
max-size: 10m