75 lines
2.6 KiB
YAML
75 lines
2.6 KiB
YAML
captainVersion: 4
|
|
services:
|
|
$$cap_appname-db:
|
|
image: 'mariadb:$$cap_mariadb_version'
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: $$cap_mariadb_root_passwd
|
|
volumes:
|
|
- '$$cap_appname-db-data:/var/lib/mysql'
|
|
networks:
|
|
- seafile-net
|
|
caproverExtra:
|
|
notExposeAsWebApp: true
|
|
$$cap_appname-memcached:
|
|
image: 'memcached:$$cap_memcached_version'
|
|
entrypoint: memcached -m 256
|
|
networks:
|
|
- seafile-net
|
|
caproverExtra:
|
|
notExposeAsWebApp: true
|
|
$$cap_appname-seafile:
|
|
image: 'seafileltd/seafile-mc:$$cap_seafile_version'
|
|
volumes:
|
|
- '$$cap_appname-seafile-data:/shared'
|
|
environment:
|
|
DB_HOST: srv-captain--$$cap_appname-db
|
|
DB_ROOT_PASSWD: $$cap_mariadb_root_passwd
|
|
TIME_ZONE: $cap_timezone
|
|
SEAFILE_ADMIN_EMAIL: $$cap_seafile_admin_email
|
|
SEAFILE_ADMIN_PASSWORD: $$cap_seafile_admin_password
|
|
depends_on:
|
|
$$cap_appname-db:
|
|
condition: service_healthy
|
|
$$capp_appname-memcached:
|
|
condition: service_healthy
|
|
networks:
|
|
- seafile-net
|
|
caproverOneClickApp:
|
|
variables:
|
|
- id: $$cap_seafile_version
|
|
label: Seafile Version
|
|
defaultValue: 8.0.4
|
|
- id: $$cap_memcached_version
|
|
label: Memcached Version
|
|
defaultValue: 1.5.6
|
|
- id: $$cap_mariadb_version
|
|
label: MariaDB Version
|
|
defaultValue: '10.5'
|
|
- id: $$cap_mariadb_root_passwd
|
|
label: MariaDB Root Password
|
|
defaultValue: zR5oZ2gN
|
|
- id: $$cap_seafile_admin_email
|
|
label: Seafile Admin Email
|
|
defaultValue: admin@localhost
|
|
- id: $$cap_seafile_admin_password
|
|
label: Seafile Admin Password
|
|
defaultValue: xL2kX7iW
|
|
- id: $cap_timezone
|
|
label: Seafile Time zone
|
|
defaultValue: Asia/Ho_Chi_Minh
|
|
instructions:
|
|
start: >-
|
|
Seafile is an open source cloud storage system with file encryption and
|
|
group sharing. For more info visit https://www.seafile.com/
|
|
end: |-
|
|
Seafile has been successfully deployed!
|
|
App is available as http://$$cap_appname.$$cap_root_domain
|
|
displayName: Seafile
|
|
isOfficial: false
|
|
description: >-
|
|
Seafile is an open source cloud storage system with file encryption and
|
|
group sharing.
|
|
documentation: >-
|
|
This docker-compose is taken from
|
|
https://manual.seafile.com/docker/deploy%20seafile%20with%20docker/
|