Skip to content

Commit

Permalink
Update docker-compose examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 10, 2023
1 parent 08237d9 commit eb74b91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
19 changes: 9 additions & 10 deletions examples/docker-compose.yml → examples/compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2'

services:

invoiceninja-app:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eb74b91

Please sign in to comment.