added environment variable to set local home
This commit is contained in:
parent
efbc13a8e4
commit
00052a7d96
@ -1,3 +1,12 @@
|
||||
# jekyll-dev
|
||||
|
||||
Simple container to learn building Dockerfiles.
|
||||
|
||||
## Usage
|
||||
|
||||
You need a `.env` file which sets the `$LOCAL_HOME` path:
|
||||
```sh
|
||||
cd /path/to/your/home
|
||||
echo "PROJECT_PATH=/path/to/your/home" > .env
|
||||
docker-compose up -d
|
||||
```
|
||||
|
@ -6,5 +6,5 @@ services:
|
||||
build: .
|
||||
container_name: container-dev
|
||||
volumes:
|
||||
- /home/david:/home/david
|
||||
- ${LOCAL_HOME}:/home/david
|
||||
restart: unless-stopped
|
||||
|
Reference in New Issue
Block a user