用docker-compose部署社区版11,一直构建失败

说一直get这个地址超时


这是我的配置详情
services:
db:
image: mysql:5.7
container_name: mysql-1
environment:
- MYSQL_ROOT_PASSWORD=1 # Requested, set the root’s password of MySQL service.
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- /opt/seafile-mysql/db:/volume1/docker/mysql # Requested, specifies the path to MySQL data persistent store.
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:11.0-latest
container_name: seafile
ports:
- “80:80”# - “443:443” # If https is enabled, cancel the comment.
volumes:
- /opt/seafile-data:/volume1/docker/seafiledate # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=1 # Requested, the value shuold be root’s password of MySQL service.
- TIME_ZONE=Asia/Shanghai # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL= # Specifies Seafile admin user, default is ‘me@example.com’.
- SEAFILE_ADMIN_PASSWORD=1 # Specifies Seafile admin password, default is ‘asecret’.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether use letsencrypt to generate cert.
- SEAFILE_SERVER_HOSTNAME=seafile.com # Specifies your host name.
depends_on:
- db
- memcached
networks:
- seafile-net

networks:
seafile-net:

这个是docker的问题,换个国内源就可以了

1 个赞

我又在docker里装了个clash,然后在注册表里把seafile镜像下载好了