services:
db:
image: docker.seafile.top/seafileltd/mariadb:10.11
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=db_dev # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=1
volumes:
- /volume1/docker/seafile/seafile-mysql:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net
memcached:
image: docker.seafile.top/seafileltd/memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
elasticsearch:
image: docker.seafile.top/seafileltd/elasticsearch:8.6.2
container_name: seafile-elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
volumes:
- /volume1/docker/seafile/elasticsearch:/usr/share/elasticsearch/data
networks:
- seafile-net
seafile:
image: docker.seafile.top/seafileltd/seafile-pro-mc:11.0-latest
container_name: seafile
ports:
- "8088:80"
# - "443:443" # If https is enabled, cancel the comment.
volumes:
- /volume1/docker/seafile/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev # 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=me@example.com # Specifies Seafile admin user, default is 'me@example.com'
- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is 'asecret'
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not
- SEAFILE_SERVER_HOSTNAME=seafile.example.com # Specifies your host name if https is enabled
depends_on:
- db
- memcached
- elasticsearch
networks:
- seafile-net
networks:
seafile-net:
您可以docker compose logs -f看下日志有什么报错?
{“@timestamp”:“2024-09-11T07:04:07.049Z”, “log.level”: “WARN”, “message”:"unable to install syscall filter: ", “ecs.version”: “1.2.0”,“service.name”:“ES_ECS”,“event.dataset”:“elasticsearch.server”,“process.thread.name”:“main”,“log.logger”:“org.elasticsearch.bootstrap.JNANatives”,“elasticsearch.node.name”:“52264b4eaa7c”,“elasticsearch.cluster.name”:“docker-cluster”,“error.type”:“java.lang.UnsupportedOperationException”,“error.message”:“seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed”,“error.stack_trace”:“java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed\n\tat org.elasticsearch.server@8.6.2/org.elasticsearch.bootstrap.SystemCallFilter.linuxImpl(SystemCallFilter.java:331)\n\tat org.elasticsearch.server@8.6.2/org.elasticsearch.bootstrap.SystemCallFilter.init(SystemCallFilter.java:622)\n\tat org.elasticsearch.server@8.6.2/org.elasticsearch.bootstrap.JNANatives.tryInstallSystemCallFilter(JNANatives.java:251)\n\tat org.elasticsearch.server@8.6.2/org.elasticsearch.bootstrap.Natives.tryInstallSystemCallFilter(Natives.java:102)\n\tat org.elasticsearch.server@8.6.2/org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:269)\n\tat org.elasticsearch.server@8.6.2/org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:166)\n\tat org.elasticsearch.server@8.6.2/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:66)\n”}
从上图错误中看,ES对外的映射路径是否给了777的权限?
感谢,es启动了但页面还是502
重新启动容器,使用docker compose up启动看下有什么报错
现在进系统了
怎么解决的问题,请赐教