File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ COPY --from=builder /usr/src/app/node_modules node_modules
18
18
COPY --from=builder /usr/src/app/build build
19
19
COPY --from=builder /usr/src/app/package.json .
20
20
21
+ ENV NODE_ENV=production
21
22
EXPOSE 3000
22
23
24
+ USER node
25
+
23
26
CMD [ "node" , "build/index.js" ]
24
27
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ docker-compose run k6 run /benchmark/composed-schema.js
65
65
66
66
Our benchmark suite is running in the CI.
67
67
68
+ ## Deployment
69
+
70
+ GraphQL-Registry uses by default postgres as database.
71
+
72
+ ``` sh
73
+ docker run -e DATABASE_URL=" " starptech/graphql-registry:latest -p 3000:3000
74
+ ```
75
+
68
76
## Contributing
69
77
70
78
❤️ contributions!
Original file line number Diff line number Diff line change @@ -6,18 +6,16 @@ services:
6
6
container_name : graphql-registry
7
7
build : .
8
8
ports :
9
- - " 3001:3000"
9
+ - ' 3001:3000'
10
10
restart : unless-stopped
11
11
environment :
12
12
DATABASE_URL : postgresql://postgres:changeme@postgres:5432/graphql-registry?schema=public
13
- profiles :
14
- - test
15
13
16
14
postgres :
17
15
container_name : postgres
18
16
image : postgres
19
17
healthcheck :
20
- test : [" CMD-SHELL", " pg_isready -U postgres" ]
18
+ test : [' CMD-SHELL', ' pg_isready -U postgres' ]
21
19
interval : 10s
22
20
timeout : 5s
23
21
retries : 5
@@ -26,7 +24,7 @@ services:
26
24
POSTGRES_PASSWORD : ${POSTGRES_PASSWORD:-changeme}
27
25
PGDATA : /data/postgres
28
26
ports :
29
- - " 5440:5432"
27
+ - ' 5440:5432'
30
28
restart : unless-stopped
31
29
32
30
k6 :
@@ -39,4 +37,4 @@ services:
39
37
volumes :
40
38
- ./benchmark:/benchmark
41
39
profiles :
42
- - test
40
+ - test
You can’t perform that action at this time.
0 commit comments