fix(invoice-ninja): db not accessable after restart (#3560)

This commit is contained in:
Asen Lekov 2024-05-31 23:53:16 +03:00 committed by GitHub
parent cb5c1c3490
commit d799d689fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 9 deletions

View File

@ -5,7 +5,7 @@
"available": true, "available": true,
"exposable": true, "exposable": true,
"id": "invoice-ninja", "id": "invoice-ninja",
"tipi_version": 3, "tipi_version": 4,
"version": "5.8.57", "version": "5.8.57",
"categories": ["finance"], "categories": ["finance"],
"description": "Invoice Ninja is an invoicing application which makes sending invoices and receiving payments simple and easy. Our latest version is a clean slate rewrite of our popular invoicing application which builds on the existing feature set and adds a wide range of features and enhancements the community has asked for.", "description": "Invoice Ninja is an invoicing application which makes sending invoices and receiving payments simple and easy. Our latest version is a clean slate rewrite of our popular invoicing application which builds on the existing feature set and adds a wide range of features and enhancements the community has asked for.",

View File

@ -24,8 +24,7 @@ services:
- ${APP_DATA_DIR}/data/php/php.ini:/usr/local/etc/php/php.ini:ro - ${APP_DATA_DIR}/data/php/php.ini:/usr/local/etc/php/php.ini:ro
- ${APP_DATA_DIR}/data/php/php-cli.ini:/usr/local/etc/php/php-cli.ini:ro - ${APP_DATA_DIR}/data/php/php-cli.ini:/usr/local/etc/php/php-cli.ini:ro
depends_on: depends_on:
invoice-ninja-db: - invoice-ninja-db
condition: service_healthy
networks: networks:
- tipi_main_network - tipi_main_network
@ -85,12 +84,8 @@ services:
depends_on: depends_on:
invoice-ninja-init: invoice-ninja-init:
condition: service_completed_successfully condition: service_completed_successfully
healthcheck: # This command is required to set important mariadb defaults
test: ['CMD', 'healthcheck.sh', '--su-mysql', '--connect', '--innodb_initialized'] command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --wait_timeout=28800, --log-warnings=0]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
invoice-ninja-init: invoice-ninja-init:
image: bash:5.2.26 image: bash:5.2.26