就是抄的官方模版的,小白一名,也不知道有没有抄对。。。
yml文件放在/opt目录下,docker-compose up之后没有报错
我不想使用https所以删掉了443端口那一行,这个应该没影响吧?
部署完后我从网页访问http://192.168.50.90会自动把我指向https,然后就无法访问
求解
services:
db:
image: mariadb:10.11
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=xb123
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- /opt/seafile-mysql/db:/var/lib/mysql
networks:
- seafile-net
memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
seafile:
image: seafileltd/seafile-mc:12.0-latest
container_name: seafile
ports:
- "80:80"
volumes:
- /opt/seafile-data:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=xb123
- TIME_ZONE=Asia/Shanghai
- SEAFILE_ADMIN_EMAIL=aaa@qq.com
- SEAFILE_ADMIN_PASSWORD=asecret
- SEAFILE_SERVER_HOSTNAME=192.168.50.90
- SEAFILE_SERVER_LETSENCRYPT=false
- FORCE_HTTPS_IN_CONF=false
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net: