From e7bbbfac8442dc1ba5787d5e8f46f443c40cf43a Mon Sep 17 00:00:00 2001 From: Matvey Kukuy Date: Fri, 10 Jun 2022 00:18:17 +0300 Subject: [PATCH] docker-compose polish --- .dockerignore | 3 ++- .gitignore | 1 + README.md | 18 +++++++++--------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.dockerignore b/.dockerignore index e541b3d4..6561a0ad 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,4 +5,5 @@ frontend/node_modules frontend/build package-lock.json ./engine/extensions -.env \ No newline at end of file +.env +.env-hobby diff --git a/.gitignore b/.gitignore index ae81aab5..d5099b36 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.pyc venv .env +.env-hobby .vscode dump.rdb .idea diff --git a/README.md b/README.md index 7eb5198b..91900bc8 100644 --- a/README.md +++ b/README.md @@ -20,23 +20,23 @@ curl https://github.com/grafana/oncall/blob/dev/docker-compose.yml -o docker-com 2. Set variables: ```bash -export DOMAIN=http://localhost -export SECRET_KEY=my_random_secret_must_be_more_than_32_characters_long -export RABBITMQ_PASSWORD=rabbitmq_secret_pw -export MYSQL_PASSWORD=mysql_secret_pw -export COMPOSE_PROFILES=with_grafana # Comment this line if you want to use existing grafana -export GRAFANA_USER=admin -export GRAFANA_PASSWORD=admin +echo "DOMAIN=http://localhost +SECRET_KEY=my_random_secret_must_be_more_than_32_characters_long +RABBITMQ_PASSWORD=rabbitmq_secret_pw +MYSQL_PASSWORD=mysql_secret_pw +COMPOSE_PROFILES=with_grafana # Remove this line if you want to use existing grafana +GRAFANA_USER=admin +GRAFANA_PASSWORD=admin" > .env_hobby ``` 3. Launch services: ```bash -docker-compose -f docker-compose.yml up --build -d +docker-compose --env-file .env_hobby -f docker-compose.yml up --build -d ``` 4. Issue one-time invite token: ```bash -docker-compose -f docker-compose.yml run engine python manage.py issue_invite_for_the_frontend --override +docker-compose --env-file .env_hobby -f docker-compose.yml run engine python manage.py issue_invite_for_the_frontend --override ``` 5. Go to [OnCall Plugin Configuration](http://localhost:3000/plugins/grafana-oncall-app) (or find OnCall plugin in configuration->plugins) and connect OnCall _plugin_ with OnCall _backend_: