Good afternoon, I run sefile in the Docker container, after starting I can’t upload the file to the server, I get a network error.
docker-compose.yml
version: '2.0'
services:
db:
image: mariadb:10.1
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=my_db_password
- MYSQL_LOG_CONSOLE=true
volumes:
- /cloud/database:/var/lib/mysql
networks:
- seafile-net
memcached:
image: memcached:1.5.6
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- "80:80"
volumes:
- /cloud/volumes:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=my_db_password
- TIME_ZONE=Etc/UTC
- SEAFILE_ADMIN_EMAIL=my_email
- SEAFILE_ADMIN_PASSWORD=my_password
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=docs. seafile. com
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net:
seafile.conf
[fileserver]
port = 8082
[database]
type = mysql
host = db
port = 3306
user = seafile
password = 830ca1f1-220c-4a72-976a-16411030447a
db_name = seafile_db
connection_charset = utf8
ccnet.conf
[General]
SERVICE_URL = http://docs.seafile.com:8000
[Database]
ENGINE = mysql
HOST = db
PORT = 3306
USER = seafile
PASSWD = 830ca1f1-220c-4a72-976a-16411030447a
DB = ccnet_db
CONNECTION_CHARSET = utf8
[Client]
UNIX_SOCKET = /opt/seafile/ccnet.sock
Please tell me how to fix a network error?