diff --git a/README.md b/README.md index d58b9ef..ac74da2 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,7 @@ Once you have deployed the app through one of the supported methods, You should ## Configuring PowerDNS-Admin -The app has a [plethora of settings](https://github.com/ngoduykhanh/PowerDNS-Admin/blob/master/docs/settings.md) that may be configured through a number of methods. Check out the settings documentation [here](https://github.com/ngoduykhanh/PowerDNS-Admin/blob/master/docs/settings.md). - -[PowerDNS Admin Settings](https://github.com/ngoduykhanh/PowerDNS-Admin/blob/master/docs/settings.md) +The app has a plethora of settings that may be configured through a number of methods. Check out the settings documentation [here](https://github.com/ngoduykhanh/PowerDNS-Admin/blob/master/docs/settings.md). ## Screenshots ![dashboard](https://user-images.githubusercontent.com/6447444/44068603-0d2d81f6-9fa5-11e8-83af-14e2ad79e370.png) diff --git a/docker/stacks/local/mysql/docker-compose.yml b/docker/stacks/local/mysql/docker-compose.yml index 9f8b9f0..4f5fe7a 100644 --- a/docker/stacks/local/mysql/docker-compose.yml +++ b/docker/stacks/local/mysql/docker-compose.yml @@ -69,7 +69,9 @@ services: ports: - "8080:80" volumes: - - /PATH/TO/YOUR/GIT/PROJECT/ROOT:/srv/app + - type: bind + source: ${PDA_LOCAL_PATH} + target: /srv/app pdns: image: azoriansolutions/powerdns-nameserver:4.5.2-alpine-3.14-mysql diff --git a/docker/stacks/local/sqlite/docker-compose.yml b/docker/stacks/local/sqlite/docker-compose.yml index 4d668b3..ce91a9d 100644 --- a/docker/stacks/local/sqlite/docker-compose.yml +++ b/docker/stacks/local/sqlite/docker-compose.yml @@ -61,7 +61,9 @@ services: ports: - "8080:80" volumes: - - /PATH/TO/YOUR/GIT/PROJECT/ROOT:/srv/app + - type: bind + source: ${PDA_LOCAL_PATH} + target: /srv/app pdns: image: azoriansolutions/powerdns-nameserver:4.5.2-alpine-3.14-mysql diff --git a/docs/settings.md b/docs/settings.md index 5a935f2..e79a86d 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -26,6 +26,10 @@ This setting controls what group ID is used for various container setup processe This setting controls what group name is used for various container setup processes during image building. This setting is useful if you're mounting a host path over the /srv/app volume and need to match your host file system permissions. +#### PDA_LOCAL_PATH + +This setting controls with path on the Docker host machine will be used as the project root for local development. + ## App Settings \* denotes a legacy setting key that will be deprecated.