wahyd4 / aria2-ariang-x-docker-compose

Docker compose files for Aria2+ AriaNg+ filerun/ Nextcloud/ h5ai + Plex. 图形化BT,磁力,离线下载,文件管理,播放,投屏
1.79k stars 281 forks source link

更改端口号后不生效 监控的还是8000 #20

Closed ziisp closed 6 years ago

ziisp commented 6 years ago

更改/root/aria2-ariang-x-docker-compose/nextcloud/docker-compose.yml文件里的端口号为80,但是没有生效,重启容器不行,重启主机也不行。 version: '2'

services: nextcloud: image: wonderfall/nextcloud volumes:

wahyd4 commented 6 years ago

我刚在本地测试了,没有这样的问题啊,是可以正常工作的。

ports:
- "80:80" #修改这一行即可

你可以通过 docker-compose down 删除容器 docker rmi <docker 镜像 id> 手动删除镜像 然后再 docker-compose up 重启镜像试试。

ziisp commented 6 years ago

使用你这个方法生效了,但是在启用验证验证后,启动容器报错 ERROR: yaml.parser.ParserError: while parsing a block collection in "./docker-compose.yml", line 21, column 7 expected <block end>, but found '<block sequence start>' in "./docker-compose.yml", line 25, column 8 就是验证那两行的错误 `version: '2'

services: nextcloud: image: wonderfall/nextcloud volumes:

`

ziisp commented 6 years ago

并且启用HTTPS也会报出那一行的错误。

wahyd4 commented 6 years ago

你这个是语法错误哦。你看看25行修改了什么东西吧 ziisp notifications@github.com于2017年10月17日 周二下午6:19写道:

并且启用HTTPS也会报出那一行的错误。

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/wahyd4/aria2-ariang-x-docker-compose/issues/20#issuecomment-337186683, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzD4Ov1iSk_99i94phrr1UNTbytPR8Oks5stH8kgaJpZM4P70jm .

ziisp commented 6 years ago

可是我是直接取消了配置的注释 并没有改代码啊。求解。

wahyd4 commented 6 years ago

你的25行是哪一行?

ziisp commented 6 years ago
wahyd4 commented 6 years ago

问题可能出在,注释的行夹杂在中间!! environment:

ziisp commented 6 years ago

非常感谢,确实是这个原因。