diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7939d51 --- /dev/null +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b6ac791 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/volumes/.gitkeep b/volumes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/volumes/seafile-data/.gitkeep b/volumes/seafile-data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/volumes/seafile-mariadb/.gitkeep b/volumes/seafile-mariadb/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/volumes/seafile-memcached/.gitkeep b/volumes/seafile-memcached/.gitkeep new file mode 100644 index 0000000..e69de29