Seafile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-10-11 20:19:16 +02:00
parent 828a48bb61
commit 8a042341da
7 changed files with 533 additions and 437 deletions

View File

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=seafile

View File

@ -0,0 +1,50 @@
version: '2.0'
services:
db:
# Seafile does not support postgres :clown:
image: mariadb:11
environment:
- MYSQL_ROOT_PASSWORD={{ seafile.db.password | mandatory }}
- MYSQL_LOG_CONSOLE=true
volumes:
- db_data:/var/lib/mysql
networks:
- backend
memcached:
image: memcached:latest
entrypoint: memcached -m 256
networks:
- backend
seafile:
image: seafileltd/seafile-mc:latest
volumes:
- seafile_data:/shared
labels:
- "traefik.enable=true"
- "traefik.http.routers.seafile.rule=Host(`files.unruhig.eu`)"
- "traefik.http.routers.seafile.entryPoints=websecure"
- "traefik.http.routers.seafile.middlewares=deny-metrics@file"
- "traefik.http.services.seafile.loadbalancer.server.port=80"
# - "prometheus-scrape.enabled=true"
# - "prometheus-scrape.port=8080"
environment:
- DB_HOST=db
- DB_ROOT_PASSWD={{ seafile.db.password | mandatory }}
- TZ=Europe/Berlin
- SEAFILE_ADMIN_EMAIL={{ seafile.admin.email | mandatory }}
- SEAFILE_ADMIN_PASSWORD={{ seafile.admin.password | mandatory }}
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=files.unruhig.eu
depends_on:
- db
- memcached
networks:
- backend
- default # oidc
networks:
backend:
volumes:
seafile_data:
db_data: