6 Commits
v1.1 ... main

Author SHA1 Message Date
Michael Staake
ac98a7714a Update README.md 2025-12-28 16:34:51 -08:00
Michael Staake
b0dec9d3e3 Update README.md 2025-12-27 12:39:22 -08:00
Michael Staake
444c94c898 Security improvement - disallow direct access to download DB 2025-12-27 12:36:35 -08:00
Michael Staake
a4cf82a470 Update README.md 2025-12-27 12:08:16 -08:00
Michael Staake
cce8dacea6 Update README.md 2025-12-27 12:07:36 -08:00
Michael Staake
4b6315ce6b Improvements to Readme and Docker Compose 2025-12-27 12:06:55 -08:00
4 changed files with 17 additions and 13 deletions

View File

@@ -126,8 +126,6 @@ For production:
Example production `docker-compose.yml`:
```yaml
version: '3.8'
services:
mainty:
build: .
@@ -136,12 +134,9 @@ services:
- "8080:80"
volumes:
- ./data:/var/www/html/data
# Uncomment below to sync code changes in development
# - .:/var/www/html
environment:
- APACHE_DOCUMENT_ROOT=/var/www/html
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped
```

View File

@@ -4,21 +4,29 @@ A simple PHP web app for tracking vehicle maintenance records. Free, easy, respo
## Requirements
- If you're using Docker, these requirements should be handled automatically, and you don't need to worry about them:
- Apache web server
- PHP 8 or higher
- SQLite extension
- If you're using Docker, these requirements should be handled automatically, and you don't need to worry about it.
## Installation
### Option 1: Docker
Once you have Docker working on your system, enter the directory where you have placed Mainty and run the following command to start the services:
```bash
docker-compose up -d
```
Then open http://localhost:8080
When you are done using Mainty, you can run the following command to stop the services:
```bash
docker-compose down
```
### Option 2: Traditional Web Server
1. Upload the entire folder to your web server
@@ -31,6 +39,6 @@ Then open http://localhost:8080
5. If everything is configured correctly, you'll see the setup page
6. Set your password to initialize the database
## Need help? Want to learn more? Go to the official GitHub!
## Need help? Want to learn more?
https://github.com/michaelstaake/mainty
https://michaelstaake.com/projects/mainty/

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
mainty:
build: .

View File

@@ -2,6 +2,9 @@ RewriteEngine On
#if this is in a folder, edit this. example.com/mainty/ would be /mainty/
RewriteBase /
# Block access to data directory
RewriteRule ^data/ - [F,L]
# Redirect to HTTPS (optional, uncomment if needed)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]