-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from patchlevel/copy-connection-for-projection
copy connection for projection
- Loading branch information
Showing
6 changed files
with
120 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ patchlevel_event_sourcing: | |
events: '%kernel.project_dir%/src' | ||
connection: | ||
url: '%env(EVENTSTORE_URL)%' | ||
provide_dedicated_connection: true | ||
|
||
when@dev: | ||
patchlevel_event_sourcing: | ||
|
@@ -63,7 +64,7 @@ EVENTSTORE_URL="pdo-pgsql://app:[email protected]:5432/app?serverVersion=16&c | |
!!! note | ||
|
||
You can find out more about what a connection url looks like [here](https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url). | ||
|
||
## Database with Docker | ||
|
||
If you are using docker, you can use the following `compose.yaml` file to start a postgres database. | ||
|
@@ -85,7 +86,6 @@ services: | |
volumes: | ||
eventstore_data: | ||
``` | ||
And for development, you can add a `compose.override.yaml` file to expose the port. | ||
|
||
```yaml | ||
|
@@ -94,18 +94,16 @@ services: | |
ports: | ||
- "5432" | ||
``` | ||
|
||
## Symfony CLI | ||
|
||
If you are using the [symfony cli](https://symfony.com/download), | ||
If you are using the [symfony cli](https://symfony.com/download), | ||
you can configure that the database is started automatically if you start the server. | ||
For this you have to add the following configuration to the `.symfony.local.yaml` file. | ||
|
||
```yaml | ||
workers: | ||
docker_compose: ~ | ||
``` | ||
|
||
!!! success | ||
|
||
You have successfully installed the bundle. Now you can start with the [quickstart](./getting_started.md) to get a feeling for the bundle. | ||
|
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