Seafile
This commit is contained in:
parent
5a40460011
commit
a7b68f4acc
3 changed files with 66 additions and 75 deletions
14
.env.default
14
.env.default
|
@ -1,10 +1,10 @@
|
||||||
# general
|
# general
|
||||||
ROOT_INSTALL=/srv
|
ROOT_INSTALL=/srv
|
||||||
|
TZ=Europe/Paris
|
||||||
|
DOMAIN=domain.com
|
||||||
|
|
||||||
# owncloud
|
# seafile
|
||||||
OWNCLOUD_VERSION=10.15
|
HOST_SEAFILE=seafile
|
||||||
OWNCLOUD_DOMAIN=localhost:8080
|
SEAFILE_ADMIN_EMAIL=admin@domain.com
|
||||||
OWNCLOUD_TRUSTED_DOMAINS=localhost
|
SEAFILE_ADMIN_PASSWORD=adminpassword
|
||||||
ADMIN_USERNAME=admin
|
SEAFILE_DB_ROOT_PASSWORD=dbpassword
|
||||||
ADMIN_PASSWORD=admin
|
|
||||||
HTTP_PORT=8080
|
|
||||||
|
|
|
@ -1,68 +0,0 @@
|
||||||
services:
|
|
||||||
owncloud:
|
|
||||||
image: owncloud/server:${OWNCLOUD_VERSION}
|
|
||||||
container_name: owncloud_server
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- ${HTTP_PORT}:8080
|
|
||||||
depends_on:
|
|
||||||
- mariadb
|
|
||||||
- redis
|
|
||||||
environment:
|
|
||||||
- OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}
|
|
||||||
- OWNCLOUD_TRUSTED_DOMAINS=${OWNCLOUD_TRUSTED_DOMAINS}
|
|
||||||
- OWNCLOUD_DB_TYPE=mysql
|
|
||||||
- OWNCLOUD_DB_NAME=owncloud
|
|
||||||
- OWNCLOUD_DB_USERNAME=owncloud
|
|
||||||
- OWNCLOUD_DB_PASSWORD=owncloud
|
|
||||||
- OWNCLOUD_DB_HOST=mariadb
|
|
||||||
- OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME}
|
|
||||||
- OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
|
||||||
- OWNCLOUD_MYSQL_UTF8MB4=true
|
|
||||||
- OWNCLOUD_REDIS_ENABLED=true
|
|
||||||
- OWNCLOUD_REDIS_HOST=redis
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "/usr/bin/healthcheck"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
volumes:
|
|
||||||
- ${ROOT_INSTALL}/data/owncloud:/mnt/data
|
|
||||||
|
|
||||||
mariadb:
|
|
||||||
image: mariadb:10.11 # minimum required ownCloud version is 10.9
|
|
||||||
container_name: owncloud_mariadb
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=owncloud
|
|
||||||
- MYSQL_USER=owncloud
|
|
||||||
- MYSQL_PASSWORD=owncloud
|
|
||||||
- MYSQL_DATABASE=owncloud
|
|
||||||
- MARIADB_AUTO_UPGRADE=1
|
|
||||||
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "mysqladmin", "ping", "-u", "root", "--password=owncloud"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
volumes:
|
|
||||||
- mysql:/var/lib/mysql
|
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:6
|
|
||||||
container_name: owncloud_redis
|
|
||||||
restart: always
|
|
||||||
command: ["--databases", "1"]
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
volumes:
|
|
||||||
- redis:/data
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
redis:
|
|
||||||
driver: local
|
|
||||||
mysql:
|
|
||||||
driver: local
|
|
59
07-seafile/docker-compose.seafile.yml
Normal file
59
07-seafile/docker-compose.seafile.yml
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
services:
|
||||||
|
seafile-db:
|
||||||
|
container_name: seafile-db
|
||||||
|
environment:
|
||||||
|
MYSQL_LOG_CONSOLE: "true"
|
||||||
|
MYSQL_ROOT_PASSWORD: ${SEAFILE_DB_ROOT_PASSWORD}
|
||||||
|
image: mariadb:10.1
|
||||||
|
networks:
|
||||||
|
- seafile-backend
|
||||||
|
volumes:
|
||||||
|
- seafile_db:/var/lib/mysql:rw
|
||||||
|
restart: unless-stopped
|
||||||
|
seafile-memcached:
|
||||||
|
container_name: seafile-memcached
|
||||||
|
entrypoint: memcached -m 256
|
||||||
|
image: memcached:1.5.6
|
||||||
|
networks:
|
||||||
|
- seafile-backend
|
||||||
|
restart: unless-stopped
|
||||||
|
seafile:
|
||||||
|
container_name: seafile
|
||||||
|
depends_on:
|
||||||
|
- seafile-db
|
||||||
|
- seafile-memcached
|
||||||
|
environment:
|
||||||
|
DB_HOST: seafile-db
|
||||||
|
DB_ROOT_PASSWD: ${SEAFILE_DB_ROOT_PASSWORD}
|
||||||
|
SEAFILE_ADMIN_EMAIL: ${SEAFILE_ADMIN_EMAIL}
|
||||||
|
SEAFILE_ADMIN_PASSWORD: ${SEAFILE_ADMIN_PASSWORD}
|
||||||
|
SEAFILE_SERVER_HOSTNAME: ${HOST_SEAFILE}.${DOMAIN}
|
||||||
|
SEAFILE_SERVER_LETSENCRYPT: "false"
|
||||||
|
TIME_ZONE: ${TZ}
|
||||||
|
image: seafileltd/seafile-mc:latest
|
||||||
|
networks:
|
||||||
|
- seafile-backend
|
||||||
|
- seafile-frontend
|
||||||
|
restart: unless-stopped
|
||||||
|
expose:
|
||||||
|
- 80
|
||||||
|
volumes:
|
||||||
|
- seafile_data:/shared:rw
|
||||||
|
- type: bind
|
||||||
|
source: ${ROOT_INSTALL}/data/seafile
|
||||||
|
target: /seafile-fuse
|
||||||
|
bind:
|
||||||
|
propagation: rshared
|
||||||
|
privileged: true
|
||||||
|
cap_add:
|
||||||
|
- SYS_ADMIN
|
||||||
|
|
||||||
|
networks:
|
||||||
|
seafile-frontend:
|
||||||
|
name: seafile-frontend
|
||||||
|
seafile-backend:
|
||||||
|
name: seafile-backend
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
seafile_db:
|
||||||
|
seafile_data:
|
Loading…
Add table
Reference in a new issue