1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

feat: update volume sync

This commit is contained in:
Christy Jacob 2022-11-07 17:17:51 +05:30
parent 1d4afd2f6c
commit 0c6107990d
3 changed files with 9 additions and 4 deletions

6
.env
View file

@ -17,14 +17,14 @@ _APP_REDIS_HOST=redis
_APP_REDIS_PORT=6379
_APP_REDIS_PASS=
_APP_REDIS_USER=
_APP_DB_HOST=mariadb
_APP_DB_HOST=mysql
_APP_DB_PORT=3306
_APP_DB_SCHEMA=appwrite
_APP_DB_USER=user
_APP_DB_PASS=password
_APP_DB_ROOT_PASS=rootsecretpassword
_APP_CONNECTIONS_DB_PROJECT=db_fra1_02=mysql://user:password@mariadb:3306/appwrite
_APP_CONNECTIONS_DB_CONSOLE=db_fra1_01=mysql://user:password@mariadb:3306/appwrite
_APP_CONNECTIONS_DB_PROJECT=db_fra1_02=mysql://user:password@mysql:3306/appwrite
_APP_CONNECTIONS_DB_CONSOLE=db_fra1_01=mysql://user:password@mysql:3306/appwrite
_APP_CONNECTIONS_CACHE=redis_fra1_01=redis://redis:6379
_APP_CONNECTIONS_QUEUE=redis_fra1_01=redis://redis:6379
_APP_CONNECTIONS_PUBSUB=redis_fra1_01=redis://redis:6379

View file

@ -18,6 +18,11 @@ $cli
Console::title('RSync V1');
Console::success(APP_NAME . ' rsync process v1 has started');
if (!file_exists($source)) {
Console::error('Source directory does not exist. Exiting ... ');
Console::exit(1);
}
Console::loop(function () use ($interval, $source, $destination) {
$time = DateTime::now();

View file

@ -647,7 +647,7 @@ services:
<<: *x-logging
container_name: appwrite-volume-sync
image: appwrite-dev
restart: unless-stopped
restart: on-failure:4
command:
- --source=/data/src/ --destination=/data/dest/ --interval=10
networks: