Skip to content

Commit 5947c7a

Browse files
committed
Fix
1 parent 5cccb01 commit 5947c7a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ cargo build --release
2626

2727
## Docker
2828

29-
Build the docker image
30-
```
31-
docker build . -t snoop
32-
```
33-
3429
Copy the `.env.example` and rename it to `.env `
3530

3631
Start the indexer

docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
services:
22
graphql:
3-
image: graphile/postgraphile:latest
43
container_name: graphql
54
restart: always
5+
build:
6+
context: ./graphql
67
depends_on:
78
postgres:
89
condition: service_healthy
@@ -30,8 +31,9 @@ services:
3031
env_file: "./.env"
3132

3233
indexer:
33-
image: snoop
3434
container_name: indexer
35+
build:
36+
context: .
3537
depends_on:
3638
postgres:
3739
condition: service_healthy

graphql/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:alpine
2+
3+
RUN npm install -g postgraphile
4+
5+
EXPOSE 5000
6+
ENTRYPOINT ["postgraphile", "-n", "0.0.0.0"]

0 commit comments

Comments
 (0)