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