Skip to content

Commit 5be3c12

Browse files
authored
Added Dockerfile and docker-compose
See PR forbole#162
1 parent ac975fd commit 5be3c12

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM golang:1.16-alpine AS builder
2+
RUN apk update && apk add --no-cache make git
3+
WORKDIR /go/src/github.com/forbole/bdjuno
4+
COPY . ./
5+
RUN make build
6+
7+
FROM alpine:latest
8+
WORKDIR /bdjuno
9+
COPY --from=builder /go/src/github.com/forbole/bdjuno/build/bdjuno /usr/bin/bdjuno
10+
CMD [ "bdjuno" ]

docker-compose.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: '3.6'
2+
services:
3+
hasura:
4+
image: hasura/graphql-engine:v2.0.4
5+
ports:
6+
- "8080:8080"
7+
restart: always
8+
environment:
9+
## this env var can be used to add the above postgres database to Hasura as a data source. this can be removed/updated based on your needs
10+
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
11+
## enable the console served by server
12+
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
13+
## enable debugging mode. It is recommended to disable this in production
14+
HASURA_GRAPHQL_DEV_MODE: "true"
15+
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
16+
## uncomment next line to set an admin secret
17+
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
18+
bdjuno:
19+
build:
20+
context: .
21+
dockerfile: Dockerfile
22+
restart: always
23+
command: bdjuno parse --home /bdjuno/.bdjuno
24+
volumes:
25+
## Modify first path to match configuration file.
26+
- /bdjuno/.bdjuno:/bdjuno/.bdjuno

0 commit comments

Comments
 (0)