version: '3' services: db: image: ${DB_IMG:-mariadb}:${DB_TAG:-latest} container_name: ${DB_CONTAINER_NAME:-seafile-db} restart: ${DB_RESTART:-unless-stopped} expose: - "3306" environment: - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWD:-changemeplease} - MYSQL_LOG_CONSOLE=true volumes: - ${LOCAL_STACK_DIR}/db:/var/lib/mysql networks: - seafile-net memcached: image: ${MC_IMG:-memcached}:${MC_TAG:-alpine} container_name: ${MC_CONTAINER_NAME:-seafile-memcached} restart: ${MC_RESTART:-unless-stopped} expose: - "11211" entrypoint: memcached -m 256 networks: - seafile-net seafile: image: ${SF_IMG:-seafileltd/seafile-mc}:${SF_TAG:-latest} container_name: ${SF_CONTAINER_NAME:-seafile} restart: ${SF_RESTART:-unless-stopped} expose: - "80" volumes: - ${LOCAL_STACK_DIR}/seafile/data:/shared - ./seafile.nginx.conf.template:/templates/seafile.nginx.conf.template:ro environment: - DB_HOST=db - DB_ROOT_PASSWD=${DB_ROOT_PASSWD:-changemeplease} env_file: - seafile.env depends_on: - db - memcached networks: - default - seafile-net networks: default: external: name: ${NETWORK:-webservices} seafile-net: internal: true