-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (54 loc) · 1.34 KB
/
docker-compose.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
53
54
55
56
version: '3.6'
services:
pg:
build:
context: ./db
dockerfile: Dockerfile.pg
restart: always
environment:
- POSTGRES_DB=txm
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgrespass
graphile:
build:
context: ./db
dockerfile: Dockerfile.graphile
ports:
- 5433:5433
depends_on:
- pg
restart: always
command: --connection postgres://app_postgraphile:supersecret@pg/txm
--owner-connection postgres://postgres:postgrespass@pg/txm
--port 5433
--subscriptions
--cors
--watch
--dynamic-json
--no-setof-functions-contain-nulls
--no-ignore-rbac
--no-ignore-indexes
--show-error-stack=json
--extended-errors hint,detail,errcode
--append-plugins @graphile-contrib/pg-simplify-inflector,postgraphile-plugin-connection-filter
--export-schema-graphql schema.graphql
--graphiql "/"
--enhance-graphiql
--allow-explain
--enable-query-batching
--legacy-relations omit
--schema app
--default-role app_anonymous
--jwt-token-identifier app.jwt_token
--jwt-secret supersecretforjwt
app:
build:
context: ./app
ports:
- 5000:5000
- 35729:35729
volumes:
- ./app/src:/app/src
environment:
- HOST=0.0.0.0
command: npm run dev