Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: outline of deployment process #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions influxdb/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM influxdb:2.7
58 changes: 58 additions & 0 deletions influxdb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Influxdb deployment instructions
## Create app

```bash
dokku$ dokku apps:create influxdb
# only listen locally
# if devs wish to access the UI externally, they should use an SSH tunnel (see later)
dokku nginx:set node-js-app bind-address-ipv4 127.0.0.1
dokku nginx:set node-js-app bind-address-ipv6 ::1
dokku$ dokku git:set influxdb deploy-branch main
dokku$ dokku builder-dockerfile:set influxdb dockerfile-path influxdb/Dockerfile
```

## create persistent storage


```bash
dokku$ dokku storage:ensure-directory influxdb
dokku storage:mount influxdb /var/lib/dokku/data/storage/influxdb:/var/lib/influxdb
```

## Configure app

```bash
# TODO: not sure what's needed here yet
dokku config:set influxdb MYVAR="myval"
```

## Manually pushing

* set up key on target server
* madwort adding his regular key for now - needs a better setup

```bash
local$ git clone [email protected]:ebmdatalab/metrics.git
local$ cd sysadmin
local$ git remote add dokku dokku@MYSERVER:influxdb
local$ git push dokku main
```

## Letsencrypt

TODO: not possible to use LE right now because we're not world-accessible :/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we in a place to use the DNS challenge for this?


```bash
dokku$ dokku ports:add influxdb http:80:3000
# TODO: block access to port 3000?
dokku$ dokku letsencrypt:enable grafana
```

## connection from Grafana

API key?

## See also

https://github.com/thomasfedb/influxdb-dokku

Loading