This commit is contained in:
zino
2023-11-29 16:45:44 +01:00
parent 9c4905f07e
commit 7021d17aed
2 changed files with 4 additions and 10 deletions

12
.gitignore vendored
View File

@@ -1,20 +1,14 @@
# Ignore everything in the volumes directory # Ignore everything in the volumes directory
volumes/* volumes/*
# Unignore directories leading to seahub_settings.py # Allow tracking of seahub_settings.py specifically
!volumes/seafile-data/
!volumes/seafile-data/seafile/
!volumes/seafile-data/seafile/conf/
# Unignore seahub_settings.py
!volumes/seafile-data/seafile/conf/seahub_settings.py !volumes/seafile-data/seafile/conf/seahub_settings.py
# Ignore contents of seafile-data except for seahub_settings.py # Ignore everything in seafile-data except the specific path to seahub_settings.py
volumes/seafile-data/* volumes/seafile-data/*
!volumes/seafile-data/seafile/ !volumes/seafile-data/seafile/
!volumes/seafile-data/seafile/conf/ !volumes/seafile-data/seafile/conf/
!volumes/seafile-data/seafile/conf/seahub_settings.py
# Keep seafile-mariadb and seafile-memcached directories but ignore their contents # Ignore everything else in seafile-mariadb and seafile-memcached directories
volumes/seafile-mariadb/* volumes/seafile-mariadb/*
volumes/seafile-memcached/* volumes/seafile-memcached/*

View File

@@ -6,7 +6,7 @@ services:
restart: "on-failure" restart: "on-failure"
volumes: volumes:
- ./volumes/seafile-data:/shared - ./volumes/seafile-data:/shared
- ./volumes/seafile-data/seafile/conf/seahub_settings.py:/shared/seafile/conf/seahub_settings.py - ./volumes/seafile-data/seafile/conf/seahub_settings.py:/shared/seafile/conf/seahub_settings.py:ro
environment: environment:
- DB_HOST=seafile-mariadb - DB_HOST=seafile-mariadb
- DB_ROOT_PASSWD=Fk%Bysffpw5ob2t@ - DB_ROOT_PASSWD=Fk%Bysffpw5ob2t@