Adding variable substitution for volume name

This commit is contained in:
Apoclyps
2019-07-24 22:09:45 +01:00
parent bd605e5832
commit 55641f1fdd
3 changed files with 15 additions and 6 deletions

1
.env.example Normal file
View File

@@ -0,0 +1 @@
COMIC_BOOK_VOLUME

View File

@@ -27,6 +27,18 @@ The CBWebReader is a Django project and follows the standard conventions for a D
git clone https://github.com/ajurna/cbwebreader
```
Configure the environment using the `.env` file or setting each variable within your environment:
```bash
cp .env.example .env
```
Alternatively, set the path to your `COMIC_BOOK_VOLUME` like so:
```bash
export COMIC_BOOK_VOLUME=some_path_to_comics_directory
```
Build and run the project using docker-compose:
```bash
@@ -34,6 +46,7 @@ docker-compose build
docker-compose up
```
## Running Tests
To run the entire test suite for CBWebReader, execute the following command:

View File

@@ -17,7 +17,7 @@ services:
- ./cbreader:/src/cbreader
- ./comic:/src/comic
- ./comic_auth:/src/comic_auth
- D:\Downloads\comics:/data
- ${COMIC_BOOK_VOLUME}:/data
command: python manage.py runserver 0.0.0.0:8000
database:
@@ -30,8 +30,3 @@ services:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=cbwebreader
# volumes:
# comic-volume:
# name: comic-volume
# external: true