-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (51 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
52 lines (51 loc) · 1.85 KB
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
version: '3'
services:
mysql:
image: 'mysql:8.0.29'
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: core
# Optional: Define an application specific user instead of using root for application connections
MYSQL_USER: hasura
MYSQL_PASSWORD: hasura
volumes:
- ./db-data/:/var/lib/mysql/
- ./db-logs:/var/log/mysql/
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 5s
timeout: 5s
retries: 6
start_period: 5s
graphql-engine:
image: hasura/graphql-engine:v2.33.0
ports:
- '8080:8080'
environment:
# Updated to use the application-specific user credentials
HASURA_GRAPHQL_DATABASE_URL: mysql://hasura:hasura@mysql:3306/core
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
HASURA_GRAPHQL_DEV_MODE: 'true'
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_METADATA_DEFAULTS: '{"backend_configs":{"dataconnector":{"athena":{"uri":"http://data-connector-agent:8081/api/v1/athena"},"mariadb":{"uri":"http://data-connector-agent:8081/api/v1/mariadb"},"mysql8":{"uri":"http://data-connector-agent:8081/api/v1/mysql"},"oracle":{"uri":"http://data-connector-agent:8081/api/v1/oracle"},"snowflake":{"uri":"http://data-connector-agent:8081/api/v1/snowflake"}}}}'
depends_on:
mysql:
condition: service_healthy
data-connector-agent:
image: hasura/graphql-data-connector:v2.33.0
ports:
- 8081:8081
environment:
QUARKUS_LOG_LEVEL: ERROR
QUARKUS_OTEL_SDK_DISABLED: 'true'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8081/api/v1/athena/health']
interval: 5s
timeout: 10s
retries: 5
start_period: 5s
depends_on:
mysql:
condition: service_healthy