-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-v1.yaml
52 lines (50 loc) · 1.58 KB
/
compose-v1.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
# This is the compose file for the v1 branch of SurrealDB. It is used for the CI pipeline and can also be used for local development.
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:
image: surrealdb/surrealdb:v1.5.4
container_name: surrealdb
restart: always
command: start --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 'NS: test' -H '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: