2021-05-13 22:14:05 +00:00
|
|
|
# ipld-eth-db
|
|
|
|
Schemas and utils for IPLD ETH Postgres database
|
2021-08-29 19:00:39 +00:00
|
|
|
|
|
|
|
## Database UML
|
2022-04-29 03:03:16 +00:00
|
|
|
![](vulcanize_db.png)
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
* Remove any existing containers / volumes:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose down -v --remove-orphans
|
|
|
|
```
|
|
|
|
|
2022-06-07 09:16:47 +00:00
|
|
|
* Spin up `ipld-eth-db` using an existing image:
|
2022-04-29 03:03:16 +00:00
|
|
|
|
2022-06-07 09:16:47 +00:00
|
|
|
* Update image source used for running the migrations in [docker-compose.yml](./docker-compose.yml) (if required).
|
2022-04-29 03:03:16 +00:00
|
|
|
|
2022-06-07 09:16:47 +00:00
|
|
|
* Run:
|
2022-04-29 03:03:16 +00:00
|
|
|
|
|
|
|
```
|
2022-06-07 09:16:47 +00:00
|
|
|
docker-compose -f docker-compose.yml up
|
2022-04-29 03:03:16 +00:00
|
|
|
```
|
|
|
|
|
2022-06-07 09:16:47 +00:00
|
|
|
* Spin up `ipld-eth-db` using a locally built image:
|
2022-04-29 03:03:16 +00:00
|
|
|
|
2022-06-07 09:16:47 +00:00
|
|
|
* Update [Dockerfile](./Dockerfile) (if required).
|
2022-04-29 03:03:16 +00:00
|
|
|
|
2022-06-07 09:16:47 +00:00
|
|
|
* Update build context used for running the migrations in [docker-compose.test.yml](./docker-compose.test.yml) (if required).
|
2022-04-29 03:03:16 +00:00
|
|
|
|
2022-06-07 09:16:47 +00:00
|
|
|
* Run:
|
|
|
|
|
|
|
|
```
|
|
|
|
docker-compose -f docker-compose.test.yml up
|
|
|
|
```
|