Fix volume consistency - use esv-bible_data volume name and correct /app/backend/data path in both Docker run commands and docker-compose.yml
This commit is contained in:
@@ -45,7 +45,7 @@ A Docker-based ESV Bible application with markdown content, featuring a React fr
|
|||||||
|
|
||||||
1. **Run directly from Docker Hub**
|
1. **Run directly from Docker Hub**
|
||||||
```bash
|
```bash
|
||||||
docker run -d -p 3000:3000 -v esv-bible-data:/app/backend/data --name esv-bible ryderjj89/esv-bible:latest
|
docker run -d -p 3000:3000 -v esv-bible_data:/app/backend/data --name esv-bible ryderjj89/esv-bible:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Access the application**
|
2. **Access the application**
|
||||||
@@ -62,7 +62,7 @@ A Docker-based ESV Bible application with markdown content, featuring a React fr
|
|||||||
2. **Build and run with Docker (with persistent storage)**
|
2. **Build and run with Docker (with persistent storage)**
|
||||||
```bash
|
```bash
|
||||||
docker build -t esv-bible .
|
docker build -t esv-bible .
|
||||||
docker run -p 3000:3000 -v esv-bible-data:/app/backend/data esv-bible
|
docker run -p 3000:3000 -v esv-bible_data:/app/backend/data esv-bible
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Access the application**
|
3. **Access the application**
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- data:/app/bible-data
|
- data:/app/backend/data
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user