docker-compose polish

This commit is contained in:
Matvey Kukuy 2022-06-10 00:18:17 +03:00
parent d201550989
commit e7bbbfac84
3 changed files with 12 additions and 10 deletions

View file

@ -5,4 +5,5 @@ frontend/node_modules
frontend/build
package-lock.json
./engine/extensions
.env
.env
.env-hobby

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
*.pyc
venv
.env
.env-hobby
.vscode
dump.rdb
.idea

View file

@ -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_: