Hello,
I’ve been working to get Seafile up and running on my Linux server. I’ve installed it using the Pro Docker container, but it keeps telling me that the version I’m running is the Community version.
Here is my docker compose file:
db:
image: mariadb:10.5
container_name: seafile-mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${SFDBPASS} # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- ${STORAGE}/seafile/seafile-mysql/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net
memcached:
image: memcached:1.5.6
container_name: seafile-memcached
restart: unless-stopped
entrypoint: memcached -m 256
networks:
- seafile-net
elasticsearch:
image: elasticsearch:7.16.2
container_name: seafile-elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 2g
volumes:
- ${CONFIG}/seafile/seafile-elasticsearch/data:/usr/share/elasticsearch/data # Requested, specifies the path to Elasticsearch data persistent store.
networks:
- seafile-net
seafile:
image: docker.seafile.top/seafileltd/seafile-pro-mc:latest
container_name: seafile
restart: unless-stopped
ports:
- "39205:80"
volumes:
- ${STORAGE}/seafile/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
- ${CONFIG}/seafile/seafile-templates:/templates # follow this guide to replace the templates to make the Nginx inside the container work with the Nginx outside: https://www.reddit.com/r/selfhosted/comments/iav3iw/need_help_with_nginx_config_for_reverse_proxy_in/
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=${SFDBPASS} # Requested, the value shuold be root's password of MySQL service.
- TIME_ZONE=${TZ} # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=${EMAIL} # Specifies Seafile admin user, default is 'me@example.com'.
- SEAFILE_ADMIN_PASSWORD=${SFPASS} # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=seafile.${DOMAIN} # Specifies your host name if https is enabled.
- VIRTUAL_HOST=seafile.${DOMAIN}
- LETSENCRYPT_HOST=seafile.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
depends_on:
- db
- memcached
- elasticsearch
networks:
- seafile-net
- proxy-tier