seafile recipe
This commit is contained in:
parent
33329345fa
commit
d6091453f0
2 changed files with 51 additions and 0 deletions
|
@ -10,8 +10,14 @@ PATH_DELUGE=/deluge
|
|||
PATH_TORRENT=/torrent
|
||||
HOST_TRAEFIK=traefik
|
||||
HOST_MAIL=mail
|
||||
HOST_SEAFILE=seafile
|
||||
# other
|
||||
TZ=Europe/Paris
|
||||
BASIC_AUTH=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/
|
||||
DELUGE_TORRENT_PORT=6881
|
||||
ROOT_INSTALL=/srv
|
||||
DB_ROOT_PASSWORD=rootpassword
|
||||
ADMIN_EMAIL=root@localdomain
|
||||
# seafile
|
||||
SEAFILE_ADMIN_PASSWORD=abc123456
|
||||
SEAFILE_HOSTNAME=seafile.localdomain
|
||||
|
|
45
seafile/docker-compose.seafile.yml
Normal file
45
seafile/docker-compose.seafile.yml
Normal file
|
@ -0,0 +1,45 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
seafile-db:
|
||||
container_name: seafile-db
|
||||
environment:
|
||||
MYSQL_LOG_CONSOLE: "true"
|
||||
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
|
||||
image: mariadb:10.1
|
||||
networks:
|
||||
- srv
|
||||
volumes:
|
||||
- ${ROOT_INSTALL}/data/seafile/mysql/db:/var/lib/mysql:rw
|
||||
seafile-memcached:
|
||||
container_name: seafile-memcached
|
||||
entrypoint: memcached -m 256
|
||||
image: memcached:1.5.6
|
||||
networks:
|
||||
- srv
|
||||
seafile:
|
||||
container_name: seafile
|
||||
depends_on:
|
||||
- seafile-db
|
||||
- seafile-memcached
|
||||
environment:
|
||||
DB_HOST: seafile-db
|
||||
DB_ROOT_PASSWD: seafile
|
||||
SEAFILE_ADMIN_EMAIL: ${ADMIN_EMAIL}
|
||||
SEAFILE_ADMIN_PASSWORD: ${SEAFILE_ÄDMIN_PASSWORD}
|
||||
SEAFILE_SERVER_HOSTNAME: ${SEAFILE_HOSTNAME}
|
||||
SEAFILE_SERVER_LETSENCRYPT: "false"
|
||||
TIME_ZONE: ${TZ}
|
||||
image: seafileltd/seafile-mc:latest
|
||||
networks:
|
||||
- srv
|
||||
expose:
|
||||
- 80
|
||||
volumes:
|
||||
- ${ROOT_INSTALL}/data/seafile/data:/shared:rw
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.seafile.rule=Host(`${HOST_SEAFILE}.${DOMAIN}`)
|
||||
- traefik.http.routers.seafile.entrypoints=websecure
|
||||
- traefik.http.routers.seafile.tls=true
|
||||
- traefik.http.services.seafile.loadbalancer.server.port=80
|
Loading…
Add table
Reference in a new issue