david/container-dev
Archived
1
0

added environment variable to set local home

This commit is contained in:
david 2020-11-05 23:06:29 +01:00
parent efbc13a8e4
commit 00052a7d96
2 changed files with 10 additions and 1 deletions

View File

@ -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
```

View File

@ -6,5 +6,5 @@ services:
build: .
container_name: container-dev
volumes:
- /home/david:/home/david
- ${LOCAL_HOME}:/home/david
restart: unless-stopped