version: '2' services: app: image: invoiceninja/invoiceninja env_file: ${STORAGE_BASE_DIR}${CONFIG_DIR}/.env labels: io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE} io.rancher.sidekicks: cron, web links: - db:mysql restart: on-failure volumes: - ${STORAGE_BASE_DIR}${LOGO_DIR}:/var/www/app/public/logo - ${STORAGE_BASE_DIR}${STORAGE_DIR}:/var/www/app/storage - ${STORAGE_BASE_DIR}${CONFIG_DIR}/.env:/var/www/app/.env cron: image: invoiceninja/invoiceninja entrypoint: | bash -c 'bash -s <