diff --git a/DOCKER.md b/DOCKER.md index c23f6af..f0b82fb 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -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 ``` diff --git a/README.md b/README.md index 0bad7c9..5b9667d 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,16 @@ A simple PHP web app for tracking vehicle maintenance records. Free, easy, respo ### 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 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: + ### Option 2: Traditional Web Server 1. Upload the entire folder to your web server diff --git a/docker-compose.yml b/docker-compose.yml index 4c24227..dcdd88f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: mainty: build: .