diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 18405edc3ce..1bf6aafe94e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,6 +1,7 @@ version: '3' services: graph-node: + restart: always image: graphprotocol/graph-node ports: - '8000:8000' @@ -14,25 +15,27 @@ services: environment: postgres_host: postgres postgres_user: graph-node - postgres_pass: let-me-in + postgres_pass: ${POSTGRES_PASS} postgres_db: graph-node ipfs: 'ipfs:5001' - ethereum: 'mainnet:http://host.docker.internal:8545' + ethereum: ${NETWORK_RPC_URL} GRAPH_LOG: info ipfs: + restart: always image: ipfs/go-ipfs:v0.4.23 ports: - '5001:5001' volumes: - ./data/ipfs:/data/ipfs postgres: + restart: always image: postgres ports: - '5432:5432' command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"] environment: POSTGRES_USER: graph-node - POSTGRES_PASSWORD: let-me-in + POSTGRES_PASSWORD: ${POSTGRES_PASS} POSTGRES_DB: graph-node volumes: - ./data/postgres:/var/lib/postgresql/data