-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README, added some usage explanations on the stack:init comma…
…nd and a FAQ
- Loading branch information
Showing
5 changed files
with
226 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,10 @@ public function build(DTO\Stack $stack, DTO\Context $context): DTO\Stack | |
new PortMapping(new Variable('SQL_PORT'), 5432), | ||
) | ||
->addEnvironmentVariables( | ||
new EnvironmentVariable(new Variable('POSTGRES_ROOT_PASSWORD'), new Variable('SQL_ROOT_PASSWORD')), | ||
new EnvironmentVariable(new Variable('POSTGRES_DB'), new Variable('SQL_DATABASE')), | ||
new EnvironmentVariable(new Variable('POSTGRES_USER'), new Variable('SQL_USER')), | ||
new EnvironmentVariable(new Variable('POSTGRES_PASSWORD'), new Variable('SQL_PASSWORD')), | ||
new EnvironmentVariable(new Variable('POSTGRES_ROOT_PASSWORD'), new Variable('DATABASE_ROOT_PASSWORD')), | ||
new EnvironmentVariable(new Variable('POSTGRES_DB'), new Variable('DATABASE_NAME')), | ||
new EnvironmentVariable(new Variable('POSTGRES_USER'), new Variable('DATABASE_USER')), | ||
new EnvironmentVariable(new Variable('POSTGRES_PASSWORD'), new Variable('DATABASE_PASSWORD')), | ||
) | ||
->addVolumeMappings( | ||
new VolumeMapping('./.docker/[email protected]/sql/uuid-ossp.sql', '/docker-entrypoint-initdb.d/00-uuid-ossp.sql', true), | ||
|
@@ -58,7 +58,11 @@ public function build(DTO\Stack $stack, DTO\Context $context): DTO\Stack | |
); | ||
|
||
$stack->addEnvironmentVariables( | ||
new EnvironmentVariable(new Variable('SQL_PORT')), | ||
new EnvironmentVariable(new Variable('DATABASE_ROOT_PASSWORD'), 'password'), | ||
new EnvironmentVariable(new Variable('DATABASE_NAME')), | ||
new EnvironmentVariable(new Variable('DATABASE_USER')), | ||
new EnvironmentVariable(new Variable('DATABASE_PASSWORD'), 'password'), | ||
new EnvironmentVariable(new Variable('DATABASE_PORT')), | ||
); | ||
|
||
return $stack; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters