-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
66 lines (64 loc) · 1.99 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
66 lines (64 loc) · 1.99 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
postgres:
image: postgres:16
ports:
- "5432:5432"
healthcheck:
test: "pg_isready -U postgres"
interval: 2s
timeout: 10s
retries: 5
environment:
POSTGRES_PASSWORD: password
hasura:
# remember to update developer-portal-deployment with the same image
image: hasura/graphql-engine:v2.47.0.cli-migrations-v3
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:password@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_ADMIN_SECRET: secret!
HASURA_GRAPHQL_ENABLED_LOG_TYPES: "startup, http-log, webhook-log, websocket-log, query-log"
HASURA_GRAPHQL_MIGRATIONS_DIR: /hasura-migrations
HASURA_GRAPHQL_METADATA_DIR: /hasura-metadata
HASURA_GRAPHQL_JWT_SECRET: '{"key": "unsafe_vxgMtDq9UxgTsDq9UxgTsNHGAnEsZxveGsAWoENHGAnEsZxveGsAWoENIoJ", "type": "HS512"}'
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES: "true"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: public
NEXT_API_URL: "http://host.docker.internal:3000/api"
INTERNAL_ENDPOINTS_SECRET: xnEU6vvqPMkc5UYEPVWM2IArdQ2eWv7A9
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: redis:6
ports:
- "6379:6379"
opensearch:
image: opensearchproject/opensearch:3
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_SECURITY_PLUGIN=true"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
healthcheck:
test:
[
"CMD-SHELL",
'curl -s http://localhost:9200/_cluster/health | grep -q ''"status":"green"''',
]
interval: 10s
timeout: 10s
retries: 5