-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yaml
30 lines (29 loc) · 1.04 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: '3.0'
services:
grafana:
container_name: 'grafana-x-ray-datasource'
platform: 'linux/amd64'
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-latest}
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
healthcheck:
test: curl -f http://localhost:3000 || exit 1
# TODO: Uncomment start_period and start_interval when the ubuntu-latest
# image in gh actions uses docker engine version >25 and remove
# interval, timeout, and retries. Version >25 is required for
# start_period and start_interval to work properly https://github.com/moby/moby/pull/46764
# start_period: 30s
# start_interval: 500ms
interval: 500ms
timeout: 30s
retries: 60
ports:
- 3000:3000/tcp
volumes:
- ./dist:/var/lib/grafana/plugins/grafana-x-ray-datasource
- ./provisioning:/etc/grafana/provisioning