faa77b77c8
It is now possible to override and explicitly specify the shell you would like used when executing cron tasks. This is accomplished with the NEXTCLOUD_EXEC_SHELL environment variable, which defaults to bash. You can also override and customize the arguments provided to that shell executable via NEXTCLOUD_EXEC_SHELL_ARGS, which defaults to "-c". See documentation for more detail and examples. Fixes #6
20 lines
453 B
YAML
20 lines
453 B
YAML
version: '3'
|
|
|
|
services:
|
|
app:
|
|
image: nextcloud:19-fpm-alpine
|
|
|
|
cronjob:
|
|
build: ../..
|
|
depends_on:
|
|
- app
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
environment:
|
|
- NEXTCLOUD_PROJECT_NAME=shell-test
|
|
- NEXTCLOUD_CONTAINER_NAME=app
|
|
- NEXTCLOUD_CRON_MINUTE_INTERVAL=1
|
|
- NEXTCLOUD_EXEC_SHELL=sh
|
|
- NEXTCLOUD_EXEC_SHELL_ARGS=-xc
|
|
- DEBUG=1
|