summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-02 22:35:54 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-02 22:35:54 -0400
commit4b5c3b05271a63cb7b2790ffa9a81453fef5b642 (patch)
treede0fb4b380d4882826dff7caae49114ce0a330ab /docker
parent9bc82296a93c348c376a7db472be1612f1785c3f (diff)
Use PHP7 for Docker image
Diffstat (limited to 'docker')
-rw-r--r--docker/crontab/cronjob.alpine1
-rw-r--r--docker/php/env.conf2
-rwxr-xr-xdocker/services.d/cron/run2
3 files changed, 5 insertions, 0 deletions
diff --git a/docker/crontab/cronjob.alpine b/docker/crontab/cronjob.alpine
new file mode 100644
index 00000000..d051ff28
--- /dev/null
+++ b/docker/crontab/cronjob.alpine
@@ -0,0 +1 @@
+1 0 * * * cd /var/www/app && ./kanboard cronjob
diff --git a/docker/php/env.conf b/docker/php/env.conf
new file mode 100644
index 00000000..bcf2e37c
--- /dev/null
+++ b/docker/php/env.conf
@@ -0,0 +1,2 @@
+env[DATABASE_URL] = $DATABASE_URL
+env[DEBUG] = $DEBUG
diff --git a/docker/services.d/cron/run b/docker/services.d/cron/run
new file mode 100755
index 00000000..da378099
--- /dev/null
+++ b/docker/services.d/cron/run
@@ -0,0 +1,2 @@
+#!/bin/execlineb -P
+crond -f \ No newline at end of file