Improvements to Readme and Docker Compose

This commit is contained in:
Michael Staake
2025-12-27 12:06:55 -08:00
parent 90e076d94c
commit 4b6315ce6b
3 changed files with 7 additions and 10 deletions

View File

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

View File

@@ -13,12 +13,16 @@ A simple PHP web app for tracking vehicle maintenance records. Free, easy, respo
### Option 1: Docker ### Option 1: Docker
Once you have Docker working on your computer, enter the directory where you have placed Mainty and run the following command to start the services:
```bash ```bash
docker-compose up -d docker-compose up -d
``` ```
Then open http://localhost:8080 Then open http://localhost:8080
When you are done using Mainty, you can run the following command to stop the services:
### Option 2: Traditional Web Server ### Option 2: Traditional Web Server
1. Upload the entire folder to your web server 1. Upload the entire folder to your web server

View File

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