Skip to content

Commit

Permalink
include build context in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jowparks committed Oct 11, 2024
1 parent 58dc34b commit 89ad26f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ A tool to fetch blocks from rpc and save in local db for better performance duri

![basic arch](assets/arch_v2.png)

## Docker

Build

```bash
docker build -t oreowallet .
```
## Docker Local Development

Run node:

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
retries: 5

migration:
build: .
image: "oreowallet"
command: /bin/sh -c "./sqlx database create && ./sqlx migrate run"
environment:
Expand All @@ -48,6 +49,7 @@ services:
max-size: "25m"

chainloader:
build: .
restart: always
image: "oreowallet"
command: ./chain_loader --dbconfig /app/conf/dbconfig --node ${NODE_HOST}:${NODE_PORT} --verbosity ${VERBOSITY:-0}
Expand All @@ -68,6 +70,7 @@ services:
max-size: "25m"

prover:
build: .
restart: always
image: "oreowallet"
command: ./prover --verbosity ${VERBOSITY:-0}
Expand All @@ -89,6 +92,7 @@ services:
max-size: "25m"

server:
build: .
restart: always
image: "oreowallet"
environment:
Expand Down Expand Up @@ -116,6 +120,7 @@ services:
max-size: "25m"

dservice:
build: .
restart: always
image: "oreowallet"
environment:
Expand Down Expand Up @@ -144,6 +149,7 @@ services:
max-size: "25m"

dworker:
build: .
restart: always
image: "oreowallet"
command: ./dworker --address 172.19.0.10:10001 --verbosity ${VERBOSITY:-0}
Expand Down

0 comments on commit 89ad26f

Please sign in to comment.