Skip to content

Commit

Permalink
Add seafile chart (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyxou authored Jun 4, 2023
1 parent 11804b3 commit fc62b3a
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/seafile/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: librepod
repository: https://librepod.github.io/charts
version: 1.2.0
- name: mariadb
repository: https://librepod.github.io/charts
version: 0.1.0
digest: sha256:e5aa2030142116372756e00f93c35cbccebc1ebd3fd85fb36db3ddf36b490d58
generated: "2023-06-04T22:54:52.121777999+03:00"
27 changes: 27 additions & 0 deletions charts/seafile/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v2
name: seafile
description: Reliable and Performant File Sync and Share Solution
version: 0.1.0
appVersion: 10.0.1
kubeVersion: ">=1.16.0-0"
type: application
keywords:
- seafile
- filesync
- file share
home: https://github.com/librepod/charts/tree/master/charts/seafile
sources:
- https://github.com/librepod/charts/tree/master/charts/seafile
- https://www.seafile.com/en/home/
- https://manual.seafile.com/config/seafile-conf/
- https://hub.docker.com/r/seafileltd/seafile-mc/tags
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/seafile.png
dependencies:
- name: librepod
version: 1.2.0
repository: https://librepod.github.io/charts
- name: mariadb
version: 0.1.0
repository: https://librepod.github.io/charts
annotations:
category: My Apps
8 changes: 8 additions & 0 deletions charts/seafile/ci/ct-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
persistence:
data:
storageClassName: local-path

mariadb:
persistence:
data:
storageClassName: local-path
58 changes: 58 additions & 0 deletions charts/seafile/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
networks:
seafile-net:

volumes:
seafile_data:
mysql_data:


services:
postgres:
image: postgres:10-alpine
container_name: seafile-postgres
environment:
# POSTGRES_USER: postgres
POSTGRES_PASSWORD: db_dev
networks:
- seafile-net

db:
image: mariadb:10.6
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=db_dev # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- mysql_data:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
networks:
- seafile-net

memcached:
image: memcached:1.6.18
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net

seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- "8080:80"
# - "443:443" # If https is enabled, cancel the comment.
volumes:
- seafile_data:/shared # Requested, specifies the path to Seafile data persistent store.
#- ./shared:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev # Requested, the value shuold be root's password of MySQL service.
- TIME_ZONE=Etc/UTC # Optional, default is UTC. Should be uncomment and set to your local time zone.
- [email protected] # Specifies Seafile admin user, default is '[email protected]'.
- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
depends_on:
- db
- memcached
networks:
- seafile-net
1 change: 1 addition & 0 deletions charts/seafile/templates/all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- include "librepod.all" . -}}
47 changes: 47 additions & 0 deletions charts/seafile/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
image:
repository: seafileltd/seafile-mc
pullPolicy: IfNotPresent
tag: ""

service:
main:
enabled: true
ports:
http:
port: 80

env:
TIME_ZONE: Europe/Moscow
DB_HOST: seafile-mariadb
DB_ROOT_PASSWD: somepassword
SEAFILE_ADMIN_EMAIL: [email protected]
SEAFILE_ADMIN_PASSWORD: admin
SEAFILE_SERVER_LETSENCRYPT: false
SEAFILE_SERVER_HOSTNAME: seafile.libre.pod
FORCE_HTTPS_IN_CONF: true

ingress:
main:
enabled: true
hosts:
- host: seafile.libre.pod

dashboard:
expose: true
url: https://seafile.libre.pod

persistence:
data:
enabled: true
type: pvc
mountPath: /shared
readOnly: false
accessMode: ReadWriteOnce
size: 20Gi
retain: true

# Enable and configure postgresql subchart under this key.
mariadb:
fullnameOverride: seafile-mariadb
env:
MYSQL_ROOT_PASSWORD: somepassword

0 comments on commit fc62b3a

Please sign in to comment.