fix(invoice-ninja): wrong container names

This commit is contained in:
Nicolas Meienberger 2024-05-14 20:04:05 +02:00
parent bed4058923
commit c0e0435d58

View File

@ -2,9 +2,39 @@ version: "3.9"
services:
invoice-ninja:
image: nginx:1.25
image: invoiceninja/invoiceninja:5.8.54
container_name: invoice-ninja
restart: unless-stopped
user: 1500:1500
environment:
- IN_USER_EMAIL=${INVOICE_NINJA_USER_MAIL}
- IN_PASSWORD=${INVOICE_NINJA_USER_PASSWORD}
- APP_URL=http://invoice-ninja
- APP_KEY=${INVOICE_NINJA_APP_KEY}
- APP_CIPHER=AES-256-CBC
- DB_HOST=invoice-ninja-db
- DB_PORT=3306
- DB_DATABASE=ninja
- DB_USERNAME=ninja
- DB_PASSWORD=ninja
- REQUIRE_HTTPS=false
- QUEUE_CONNECTION=database
- IS_DOCKER=TRUE
volumes:
- ${APP_DATA_DIR}/data/public:/var/www/app/public:rw,delegated
- ${APP_DATA_DIR}/data/storage:/var/www/app/storage:rw,delegated
- ${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
depends_on:
invoice-ninja-db:
condition: service_healthy
networks:
- tipi_main_network
invoice-ninja-web:
image: nginx:1.25
container_name: invoice-ninja-web
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/nginx/invoice-ninja.conf:/etc/nginx/conf.d/default.conf:ro
- ${APP_DATA_DIR}/data/public:/var/www/app/public:ro
@ -41,36 +71,6 @@ services:
traefik.http.routers.invoice-ninja-local.service: invoice-ninja
traefik.http.routers.invoice-ninja-local.tls: true
invoice-ninja-server:
image: invoiceninja/invoiceninja:5.8.54
container_name: invoice-ninja-server
restart: unless-stopped
user: 1500:1500
environment:
- IN_USER_EMAIL=${INVOICE_NINJA_USER_MAIL}
- IN_PASSWORD=${INVOICE_NINJA_USER_PASSWORD}
- APP_URL=http://invoice-ninja
- APP_KEY=${INVOICE_NINJA_APP_KEY}
- APP_CIPHER=AES-256-CBC
- DB_HOST=invoice-ninja-db
- DB_PORT=3306
- DB_DATABASE=ninja
- DB_USERNAME=ninja
- DB_PASSWORD=ninja
- REQUIRE_HTTPS=false
- QUEUE_CONNECTION=database
- IS_DOCKER=TRUE
volumes:
- ${APP_DATA_DIR}/data/public:/var/www/app/public:rw,delegated
- ${APP_DATA_DIR}/data/storage:/var/www/app/storage:rw,delegated
- ${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
depends_on:
invoice-ninja-db:
condition: service_healthy
networks:
- tipi_main_network
invoice-ninja-db:
image: mariadb:10.4
container_name: invoice-ninja-db
@ -88,7 +88,14 @@ services:
invoice-ninja-init:
condition: service_completed_successfully
healthcheck:
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
test:
[
"CMD",
"healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized",
]
interval: 10s
timeout: 5s
retries: 5