-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 856 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 856 Bytes
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
version: "3"
services:
db:
image: postgres:latest
volumes:
- ./db-data:/var/lib/postgresql/data
container_name: psql
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=dbpassword
- POSTGRES_DB=dbname
graphql-engine:
image: hasura/graphql-engine:latest
ports:
- "5001:8080"
depends_on:
- db
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://user:dbpassword@db:5432/dbname
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: 2OWslm5aAjlTARUTE$T
redis_db:
image: redis:6.2.5-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./data/redis_DB:/data