From eb74b9117e5825cd39da1cfdee39232080bd890c Mon Sep 17 00:00:00 2001 From: Dave Conroy Date: Fri, 10 Nov 2023 06:48:17 -0800 Subject: [PATCH] Update docker-compose examples --- README.md | 2 +- examples/{docker-compose.yml => compose.yml} | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) rename examples/{docker-compose.yml => compose.yml} (86%) diff --git a/README.md b/README.md index d58b7af..04c5bfc 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ The following image tags are available along with their tagged release based on ### Quick Start -- The quickest way to get started is using [docker-compose](https://docs.docker.com/compose/). See the examples folder for a working [docker-compose.yml](examples/docker-compose.yml) that can be modified for development or production use. +- The quickest way to get started is using [docker-compose](https://docs.docker.com/compose/). See the examples folder for a working [compose.yml](examples/compose.yml) that can be modified for development or production use. - Set various [environment variables](#environment-variables) to understand the capabilities of this image. - Map [persistent storage](#data-volumes) for access to configuration and data files for backup. diff --git a/examples/docker-compose.yml b/examples/compose.yml similarity index 86% rename from examples/docker-compose.yml rename to examples/compose.yml index c7fd600..de466c1 100644 --- a/examples/docker-compose.yml +++ b/examples/compose.yml @@ -1,5 +1,3 @@ -version: '2' - services: invoiceninja-app: @@ -36,7 +34,7 @@ services: restart: always invoiceninja-db: - image: tiredofit/mariadb:10.8-latest + image: tiredofit/mariadb:10.11 container_name: invoiceninja-db volumes: - ./db:/var/lib/mysql @@ -55,21 +53,22 @@ services: invoiceninja-db-backup: container_name: invoiceninja-db-backup - image: tiredofit/db-backup:latst + image: tiredofit/db-backup:latest links: - invoiceninja-db volumes: - ./dbbackup:/backup environment: + - TIMEZONE=America/Vancouver - CONTAINER_NAME=invoiceninja-db-backup - - DB_HOST=invoiceninja-db - - DB_TYPE=mariadb - - DB_NAME=invoiceninja - - DB_USER=invoiceninja - - DB_PASS=invoiceninja + - DB01_HOST=invoiceninja-db + - DB01_TYPE=mariadb + - DB01_NAME=invoiceninja + - DB01_USER=invoiceninja + - DB01_PASS=invoiceninja - DB01_BACKUP_INTERVAL=1440 - DB01_BACKUP_BEGIN=0000 - - DB_CLEANUP_TIME=8640 + - DB01_CLEANUP_TIME=8640 networks: - services restart: always