Skip to content

Commit 85141ab

Browse files
authored
Create README.md
1 parent 1f793aa commit 85141ab

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
```bash
2+
git clone -b release https://github.com/netbox-community/netbox-docker.git
3+
cd netbox-docker
4+
git checkout 3.1.1
5+
```
6+
7+
demo/layer1_topololgy/netbox-docker ディレクトリ内に、以下のように docker-compose.override.yml を作成します。(docker-compose-override.yml.example をコピーして編集)
8+
9+
* 初回起動時にDB周りの設定処理が実行されますが、環境によっては時間がかかってヘルスチェックに引っかかり、起動が中断してしまいます。ヘルスチェックによる中断を避ける場合には `start_period` を変更してください。
10+
- 初回の管理者(superuser)の登録・管理者用APIトークンの設定処理が変わりました(これまではデフォルトで用意されていたが、起動時に任意の管理者名・パスワードを指定して作るようになっています)。デフォルトでは起動時に superuser は作成されません。環境変数でこの動作を変更し、指定した管理者アカウント・トークンを起動時に作るように指定します。
11+
12+
```yaml
13+
# playground/demo/layer1_topology/netbox-docker$ cat docker-compose.override.yml
14+
services:
15+
netbox:
16+
image: ghcr.io/ool-mddo/mddo-netbox:main
17+
ports:
18+
- "8000:8080"
19+
# If you want the Nginx unit status page visible from the
20+
# outside of the container add the following port mapping:
21+
# - "8001:8081"
22+
healthcheck:
23+
# Time for which the health check can fail after the container is started.
24+
# This depends mostly on the performance of your database. On the first start,
25+
# when all tables need to be created the start_period should be higher than on
26+
# subsequent starts. For the first start after major version upgrades of NetBox
27+
# the start_period might also need to be set higher.
28+
# Default value in our docker-compose.yml is 60s
29+
start_period: 600s
30+
environment:
31+
SKIP_SUPERUSER: "false"
32+
SUPERUSER_API_TOKEN: "0123456789abcdef0123456789abcdef01234567"
33+
SUPERUSER_EMAIL: "admin@localhost"
34+
SUPERUSER_NAME: "admin"
35+
SUPERUSER_PASSWORD: "AdminPa55w0rd"
36+
```
37+
```yaml
38+
# playground/demo/layer1_topology/netbox-docker$ cat docker-compose.yml
39+
volumes:
40+
#- ./configuration:/etc/netbox/config:z,ro <- /etc/netbox/configの部分をコメントアウトする
41+
- netbox-media-files:/opt/netbox/netbox/media:rw
42+
- netbox-reports-files:/opt/netbox/netbox/reports:rw
43+
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw

0 commit comments

Comments
 (0)