From 843930e44dc8dfdaa3d05c252ec81f635102704f Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Wed, 8 Dec 2021 11:56:56 -0500 Subject: [PATCH] Added additional Docker specific setting named PDA_LOCAL_PATH. This setting is used by local deployment Docker files to determine the host machine path to the project root. Updated project README.md to remove redundant documentation links. Updating the settings.md documentation to reflect the aforementioned setting. --- README.md | 4 +--- docker/stacks/local/mysql/docker-compose.yml | 4 +++- docker/stacks/local/sqlite/docker-compose.yml | 4 +++- docs/settings.md | 4 ++++ 4 files changed, 11 insertions(+), 5 deletions(-) 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.