-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (67 loc) · 1.83 KB
/
docker-compose.yml
File metadata and controls
71 lines (67 loc) · 1.83 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
67
68
69
70
version: "3.5"
services:
proxy:
image: nginx:mainline-alpine
ports:
- "${PROXY_PORT:-8888}:80"
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d
networks:
- frontend
api:
image: flybase/ftyp-api:${TAG:-latest}
restart: "on-failure"
command: >-
--subscriptions
--watch
--dynamic-json
--disable-default-mutations
--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
--export-schema-graphql schema.graphql
--enhance-graphiql
--allow-explain
--enable-query-batching
--legacy-relations omit
--connection postgres://postgres:${FTYP_PGPASSWORD:-CHANGEME}@db/${FTYP_PGDATABASE:-ftyp}
--schema ftyp,flybase,public
networks:
- frontend
- internal
# See https://hub.docker.com/_/postgres for details on using
# the postgres docker container.
db:
# Uncomment image line below in production.
image: flybase/ftyp-db:${TAG:-latest}
# Uncomment build context for development
#build:
# context: ./db
restart: always
environment:
POSTGRES_DB: ${FTYP_PGDATABASE:-ftyp}
POSTGRES_PASSWORD: ${FTYP_PGPASSWORD:-CHANGEME}
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C"
volumes:
- ftyp-data:/var/lib/postgresql/data
- ./db/initdb.d:/docker-entrypoint-initdb.d
- ./db/data:/ftyp/data
- ./db/scripts:/ftyp/scripts
networks:
- internal
client:
image: flybase/ftyp-client:${TAG:-latest}
working_dir: "/home/node/app"
command: "serve -s build -l 5000"
volumes:
- ./client:/home/node/app
networks:
- frontend
networks:
frontend:
internal:
volumes:
ftyp-data: {}