From c8c40ee515bd54fac674c31ac450a0580e06d00a Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Sun, 9 Feb 2025 19:16:10 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feature:=20Update=20compose=20file=20t?= =?UTF-8?q?o=20use=20registry=20image=20=F0=9F=93=84=20docs:=20Update=20re?= =?UTF-8?q?adme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 ++++++++++++++++++++++++++++++- docker-compose.yml | 24 ++++-------------------- 2 files changed, 34 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 231cbfc..768fa54 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,39 @@ BillTrak is a web application designed to help users manage and track their bill ## Technologies Used -- HTML, CSS, JavaScript +- HTML, Tailwind CSS, JavaScript - Chart.js for data visualization - Docker for containerization +## Usage + +1. Copy the `bills-sample.db` file to `bills.db` in a folder docker can access. This will be the SQLite database used to store bill data. + +2. Start the container using `docker compose up -d` with the following `docker-compose.yml` configuration: +```yaml +services: +app: + container_name: BillTrak + restart: unless-stopped + image: ghcr.io/solo-web-works/billtrak:main + + ports: + - "8888:80" # Map port 8080 on the host to port 80 in the container. Change the left side to change the host port. + + volumes: + # - .:/var/www/html # Mount the current directory for live development + - ./data/bills.db:/var/www/html/data/bills.db # Persist SQLite data +``` +3. Access the application at http://localhost:8888 + +## Roadmap + +- Add feature to import bills from CSV files +- Add feature to export bills to CSV files +- Add authentication and user accounts +- Add notifications for upcoming bills +- Got an idea? Open an issue! + ## Contributing Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes. diff --git a/docker-compose.yml b/docker-compose.yml index 4d301e7..8ce8278 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,28 +2,12 @@ services: app: container_name: BillTrak restart: unless-stopped - build: - context: . - dockerfile: Dockerfile - - # depends_on: - # - redis - - # environment: - # - REDIS_HOST=redis - # - REDIS_PORT=6379 + image: ghcr.io/solo-web-works/billtrak:main ports: - - "8888:80" # Map port 8080 on the host to port 80 in the container + - "8888:80" # Map port 8888 on the host to port 80 in the container. Change the left side to change the host port. volumes: - - .:/var/www/html # Mount the current directory for live development + # Mount the current directory for live development + # - .:/var/www/html - ./data/bills.db:/var/www/html/data/bills.db # Persist SQLite data - - # redis: - # container_name: redis - # restart: unless-stopped - # image: redis:latest - - # ports: - # - "6379:6379"