diff --git a/README.md b/README.md index 044ad1a..1ff3dfc 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ Because nobody should have to deal with a homemade spreadsheet or a shoebox full 1. Install Docker 2. Clone this repo 3. Run `docker build -t lubelog .` -4. Run `docker run -d -p 80:5000 --name lubelog lubelog` - 1. Optionally, you can mount a volume to the container to persist data. For example, `docker run -d -p 80:5000 -v /path/to/data:/app/data --name lubelog lubelog` +4. CHECK docker-compose.yaml and make sure the mounting directories look correct. +5. Run `docker-compose up` ## Dependencies - Bootstrap diff --git a/Views/Home/_Settings.cshtml b/Views/Home/_Settings.cshtml index 8997bb7..39778c4 100644 --- a/Views/Home/_Settings.cshtml +++ b/Views/Home/_Settings.cshtml @@ -16,7 +16,7 @@
- +
diff --git a/appsettings.json b/appsettings.json index abd4f5b..295ca45 100644 --- a/appsettings.json +++ b/appsettings.json @@ -5,13 +5,6 @@ "Microsoft.AspNetCore": "Warning" } }, - "Kestrel": { - "Endpoints": { - "http": { - "Url": "http://0.0.0.0:5000" - } - } - }, "AllowedHosts": "*", "UseDarkMode": false, "EnableCsvImports": true, diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..3d91f73 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,17 @@ +version: "3.7" +services: + lubelogger: + container_name: "lubelogger" + image: "lubelogger:latest" + ports: + - "8080:8080" + volumes: + - source: C:\lubelogger\data + target: /App/data + type: bind + - source: C:\lubelogger\images + target: /App/wwwroot/images + type: bind + - source: C:\lubelogger\documents + target: /App/wwwroot/documents + type: bind \ No newline at end of file