This commit is contained in:
zino
2023-11-29 13:53:14 +01:00
parent a60465ddcd
commit 2827764612
6 changed files with 61 additions and 0 deletions

15
.gitignore vendored Normal file
View File

@@ -0,0 +1,15 @@
# Ignore everything in the volumes/html directory
volumes/*
# But not these directories
!volumes/seafile-data
!volumes/seafile-mariadb
!volumes/seafile-memcached
# Ignore contents of these directories
volumes/seafile-data/*
volumes/seafile-mariadb/*
volumes/seafile-memcached/*
# Do not ignore a special file name
!.gitkeep

46
docker-compose.yml Normal file
View File

@@ -0,0 +1,46 @@
version: "3.8"
services:
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
restart: "on-failure"
volumes:
- ./volumes/seafile-data:/shared
environment:
- DB_HOST=seafile-mariadb
- DB_ROOT_PASSWD=Fk%Bysffpw5ob2t@
- TIME_ZONE="Europe/Berlin"
- SEAFILE_ADMIN_EMAIL=acc@zinomedia.de
- SEAFILE_ADMIN_PASSWORD=&u4irA*F5PJ8YRdd
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=seafile.zinomedia.de
depends_on:
- seafile-mariadb
- seafile-memcached
networks:
- web
seafile-mariadb:
image: mariadb:latest
container_name: seafile-mariadb
restart: "on-failure"
environment:
- MYSQL_ROOT_PASSWORD=Fk%Bysffpw5ob2t@
- MYSQL_LOG_CONSOLE=true
volumes:
- ./volumes/seafile-mariadb/db:/var/lib/mysql
networks:
- web
seafile-memcached:
image: memcached:latest
container_name: seafile-memcached
restart: "on-failure"
entrypoint: memcached -m 256
networks:
- web
networks:
web:
external: true
name: web

0
volumes/.gitkeep Normal file
View File

View File

View File

View File