-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (59 loc) · 1.57 KB
/
docker-compose.yml
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
version: "3.7"
services:
postgres:
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
image: postgres:14.0
restart: unless-stopped
volumes:
- db_data:/var/lib/postgresql/data
pgweb:
depends_on:
- postgres
environment:
DATABASE_URL: postgres://postgres:mysecretpassword@postgres:5432/postgres?sslmode=disable
image: sosedoff/pgweb
ports:
- 8081:8081
restart: unless-stopped
hasura:
depends_on:
- postgres
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:mysecretpassword@postgres:5432/postgres
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_ADMIN_SECRET: myadminsecretkey
HASURA_GRAPHQL_AUTH_HOOK: http://auth:1111/validate
HASURA_GRAPHQL_AUTH_HOOK_MODE: GET
image: hasura/graphql-engine:v2.0.0-beta.1
ports:
- "8081:8080"
restart: unless-stopped
auth-db:
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
image: postgres:14.0
ports:
- "5432:5432"
restart: unless-stopped
volumes:
- db_data:/var/lib/postgresql/data
auth:
build:
context: .
dockerfile: ./Dockerfile
depends_on:
- postgres
- hasura
image: minskylab/hasura-auth-webhook:v0.0.1
ports:
- "8080:8080"
restart: unless-stopped
volumes:
db_data: