-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
60 lines (58 loc) · 2.04 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This docker compose file is for the v2 branch of SurrealDB. It is used for the CI pipeline
# and can also be used for local development. If you're looking for a compose file for the v1 branch,
# please refer to the tests/config/v1/compose.yaml file.
services:
grafana:
container_name: grafana
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-11.2.1}
# remove the following line when developing to have backend debugger
development: "false"
ports:
- 3000:3000
volumes:
- ./dist:/var/lib/grafana/plugins/grafanalabs-surrealdb-datasource
- ./provisioning:/etc/grafana/provisioning
- .:/root/grafana-surrealdb-datasource
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:3000/login"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
environment:
- GF_LOG_LEVEL=debug
networks:
- surrealdb
surrealdb:
# The image is pinned to v2.0.2 to avoid a bug in the 2.0.3-4 releases.
# In the 2.0.3 release, an issue was introduced that caused the SurrealDB
# server to take an unacceptably long time to index data, causing issues
# with the tests.
#
# https://github.com/surrealdb/vart/pull/54#issue-2577952172
image: surrealdb/surrealdb:v2.0.2
container_name: surrealdb
restart: always
command: start memory --log trace --username root --password test --allow-all
ports:
- 8000:8000
networks:
- surrealdb
test-data-loader:
image: curlimages/curl:latest
container_name: test-data-loader
command: |
-v -X POST -u 'root:test' -H 'surreal-ns: test' -H 'surreal-db: test' -H 'Accept: application/json' --data-binary @/dev/shm/surreal-deal-store.surql http://surrealdb:8000/import
depends_on:
- surrealdb
restart: on-failure
volumes:
- ./tests/fixtures/surreal-deal-store.surql:/dev/shm/surreal-deal-store.surql
networks:
- surrealdb
networks:
surrealdb: