seafile-compose

 avatar
unknown
yaml
2 days ago
1.9 kB
4
Indexable
services:
  db:
    image: mariadb:10.11
    container_name: seafile-mysql
    environment:
      - MYSQL_ROOT_PASSWORD=dbpassword  # Required, set the root's password of MySQL service.
      - MYSQL_LOG_CONSOLE=true
      - MARIADB_AUTO_UPGRADE=1
      - PGID=1000
      - PUID=1000
      - TZ=America/New_York
    volumes:
      - /home/user/docker/seafile/seafile-mysql/db:/var/lib/mysql  # Required, specifies the path to MySQL data persistent store.
    networks:
      - seafile-net
    restart: unless-stopped

  memcached:
    image: memcached:1.6.18
    container_name: seafile-memcached
    entrypoint: memcached -m 256
    networks:
      - seafile-net
    restart: unless-stopped
          
  seafile:
    image: seafileltd/seafile-mc:11.0-latest
    container_name: seafile
    ports:
      - 8093:80
    volumes:
      - /home/user/docker/seafile/seafile-data:/shared  #I split the config in my home folder
      - /media/data/seafile:/shared/seafile/seafile-data #and the actual storage in my RAID array. Keeping only /shared would have it all in one place!
    environment:
      - DB_HOST=db
      - DB_ROOT_PASSWD=dbpassword  # Required, the value should be root's password of MySQL service.
      - TIME_ZONE=America/New_York  # Optional, default is UTC. Should be uncomment and set to your local time zone.
      - SEAFILE_ADMIN_EMAIL=admin # Specifies Seafile admin user, default is 'me@example.com'.
      - SEAFILE_ADMIN_PASSWORD=randompassword     # Specifies Seafile admin password, default is 'asecret'.
      #- SEAFILE_SERVER_LETSENCRYPT=false   # Whether to use https or not.
      - SEAFILE_SERVER_HOSTNAME=sea.xxx.com # Specifies your host name if https is enabled.
      - PGID=1000
      - PUID=1000
    depends_on:
      - db
      - memcached
    networks:
      - seafile-net
    restart: unless-stopped

networks:
  seafile-net:
Editor is loading...
Leave a Comment