docker-seafile/riffol.conf
shimunn e0491a5b45
Some checks are pending
continuous-integration/drone/push Build is failing
works
2019-04-20 00:35:47 +02:00

114 lines
2.7 KiB
Plaintext

init seafile {
application_groups [seafile]
}
application_group seafile {
applications [
setup
seafile
seahub
nginx
]
}
init seafile {
application_groups [seafile]
}
application_group seafile {
applications [
setup
seafile
seahub
nginx
]
}
application setup {
mode oneshot
start [ /usr/bin/setup ]
dir /opt/seafile
env {
new {
SEAF /opt/seafile
}
pass {
SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL
SEAF_VERSION SEAF_VERSION
SEAF_NAME SEAF_NAME
SEAF_MYSQL SEAF_MYSQL
SEAF_MYSQL_HOST SEAF_MYSQL_HOST
SEAF_MYSQL_PORT SEAF_MYSQL_PORT
SEAF_MYSQL_USER SEAF_MYSQL_USER
SEAF_MYSQL_DB_SEAF SEAF_MYSQL_DB_SEAF
SEAF_MYSQL_DB_HUB SEAF_MYSQL_DB_HUB
SEAF_MYSQL_DB_CCNET SEAF_MYSQL_DB_CCNET
}
}
}
application seafile {
mode forking
pidfile /var/run/seafile/seaf-server.pid
requires [ setup ]
start [ /usr/bin/seafile, start ]
stop [ /usr/bin/seafile, stop ]
dir /opt/seafile
healthcheck [ server ]
healthcheckfail restart
}
application seahub {
mode forking
requires [ setup ]
pidfile /var/run/seafile/seahub.pid
start [ /usr/bin/seahub, start, 8000 ]
stop [ /usr/bin/seahub, stop ]
dir /opt/seafile
healthcheck [ hub ]
healthcheckfail restart
}
application nginx {
mode forking
pidfile /var/run/nginx.pid
requires [ setup, seahub ]
start [ /usr/sbin/nginx ]
dir /opt/seafile
healthcheck [ http, hub ]
healthcheckfail restart
}
healthchecks riffol {
checks [
proc://riffol
]
timeout 2
interval 10000
}
healthcheck http {
checks [
"http://127.0.0.1:80"
]
interval 15
timeout 20
}
healthcheck hub {
checks [
"http://127.0.0.1:8000"
"tcp://127.0.0.1:8080"
]
interval 15
timeout 60
}
healthcheck server {
checks [
"http://127.0.0.1:8082"
]
interval 15
timeout 15
}