From af45b8a1e4f712028b791ee3b5a43ec55474c4e0 Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Wed, 7 Dec 2022 13:14:40 +0100 Subject: [PATCH] docs: Adjust docker setup to use one .env file --- packages/docs/pages/guide/installation.md | 36 ++++------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/packages/docs/pages/guide/installation.md b/packages/docs/pages/guide/installation.md index 976b96ae..d1df563b 100644 --- a/packages/docs/pages/guide/installation.md +++ b/packages/docs/pages/guide/installation.md @@ -33,47 +33,21 @@ Automatisch comes with two services which are `main` and `worker`. They both use We give the sample environment variable files for the setup but you should adjust them to include your own values. ::: -To install the main: +To run the main: ```bash -docker run --env-file=./main.env automatischio/automatisch +docker run --env-file=./.env automatischio/automatisch ``` -::: details main.env +To run the worker: ```bash -APP_ENV=production -HOST= -PROTOCOL= -PORT= -ENCRYPTION_KEY= -WEBHOOK_SECRET_KEY= -APP_SECRET_KEY= -POSTGRES_HOST= -POSTGRES_PORT= -POSTGRES_DATABASE= -POSTGRES_USERNAME= -POSTGRES_PASSWORD= -POSTGRES_ENABLE_SSL= -REDIS_HOST= -REDIS_PORT= -REDIS_USERNAME= -REDIS_PASSWORD= -REDIS_TLS= +docker run --env-file=./.env -e WORKER=true automatischio/automatisch ``` -::: - -To install the worker: +::: details .env ```bash -docker run --env-file=./worker.env automatischio/automatisch -``` - -::: details worker.env - -```bash -WORKER=true APP_ENV=production HOST= PROTOCOL=