あれから2年、そろそろアップデートしてみる。
docker-compose.yml
version: '3'
services:
web:
#image: gitea/gitea:1.7
image: gitea/gitea:1.13.1
volumes:
- ./gitea-data:/data
ports:
- "3000:3000"
- "10022:10022"
environment:
- TZ=Japan
- SSH_PORT=10022
restart: always
START_SSH_SERVERの行をコメントアウトする
$ vi gitea-data/gitea/conf/app.ini
;START_SSH_SERVER = true
$ docker-compose pull
$ docker-compose up
クライアント側から参照するサーバー側のkeyが変わるらしいので
クライアント側のknowns_hosts行を削除する。
$ vi ~/.ssh/known_hosts
[192.168.1.100]:10022 ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ←削除
他
ログに以下の行がssh接続するたびにエラーが記録されてしまうが、動きは問題ないらしい。
ssh logs about missing host certificates · Issue #13724 · go-gitea/gitea
web_1 | Could not load host certificate "/data/ssh/ssh_host_ed25519_cert": No such file or directory
web_1 | Could not load host certificate "/data/ssh/ssh_host_rsa_cert": No such file or directory
web_1 | Could not load host certificate "/data/ssh/ssh_host_ecdsa_cert": No such file or directory
web_1 | Could not load host certificate "/data/ssh/ssh_host_dsa_cert": No such file or directory