diff --git a/examples/sending emails/README.md b/examples/sending emails/README.md index 5cae5b49..a2a43abd 100644 --- a/examples/sending emails/README.md +++ b/examples/sending emails/README.md @@ -5,7 +5,7 @@ This example sends plain-text email with [`sqlpage.send_mail`](https://sql-page. Run the example: ```sh -docker compose up --build +docker compose -f docker-compose.yml -f docker-compose.local.yml up --build ``` This builds SQLPage from the current repository checkout before starting the example. diff --git a/examples/sending emails/docker-compose.local.yml b/examples/sending emails/docker-compose.local.yml new file mode 100644 index 00000000..9be1242d --- /dev/null +++ b/examples/sending emails/docker-compose.local.yml @@ -0,0 +1,6 @@ +services: + web: + build: + context: ../.. + args: + CARGO_PROFILE: dev diff --git a/examples/sending emails/docker-compose.yml b/examples/sending emails/docker-compose.yml index dc8955e7..bca61ef9 100644 --- a/examples/sending emails/docker-compose.yml +++ b/examples/sending emails/docker-compose.yml @@ -1,10 +1,6 @@ services: web: image: lovasoa/sqlpage:main - build: - context: ../.. - args: - CARGO_PROFILE: dev ports: - "8080:8080" environment: