docker-seafile/riffol.conf
2019-04-19 20:52:20 +02:00

102 lines
2.1 KiB
Plaintext

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 {
pass SEAF_VERSION SEAF_VERSION
pass SEAF_UPGRADE_INTERVAL SEAF_UPGRADE_INTERVAL
}
stdout file [ /dev/stdout ]
stderr file [ /dev/stderr ]
uid 0
gid 0
}
application seafile {
mode forking
requires [ setup ]
start [ /usr/bin/seafile, start ]
stop [ /usr/bin/seafile, stop ]
pidfile /var/run/seafile/seafile.pid
dir /opt/seafile
stdout file [ /dev/stdout ]
stderr file [ /dev/stderr ]
uid 0
gid 0
healthchecks [
server
]
healthcheckfail restart
}
application seahub {
mode forking
requires [ setup ]
start [ /usr/bin/seahub, start, 8000 ]
stop [ /usr/bin/seahub, stop ]
pidfile /var/run/seafile/seahub.pid
dir /opt/seafile
stdout file [ /dev/stdout ]
stderr file [ /dev/stderr ]
uid 0
gid 0
healthchecks [
hub
]
healthcheckfail restart
}
application nginx {
mode oneshot
start [ /usr/sbin/nginx ]
requires [ setup, seahub ]
pidfile /var/run/nginx/nginx.pid
dir /opt/seafile
stdout file [ /dev/log ]
stderr file [ /dev/stderr ]
uid 0
gid 0
healthchecks [
http
]
healthcheckfail restart
}
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
}