forked from blockscout/blockscout-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1.18 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3"
services:
database:
image: postgres:15
container_name: 'da-indexer-postgres'
restart: always
environment:
POSTGRES_PASSWORD: ''
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
ports:
- "9432:5432"
volumes:
- ./database:/var/lib/postgresql/data
da-indexer:
build:
context: .
dockerfile: ./Dockerfile
container_name: 'da-indexer'
restart: always
depends_on:
- database
ports:
- "8050:8050"
- "8051:8051"
environment:
## optional: if provided, would be used as a configuration file
DA_INDEXER__CONFIG: /app/config.toml
DA_INDEXER__DATABASE__CONNECT__URL: postgres://postgres:@database:5432/blockscout
DA_INDEXER__DATABASE__CREATE_DATABASE: "true"
DA_INDEXER__DATABASE__RUN_MIGRATIONS: "true"
env_file:
## optional: if provided, would overwrite values from configuration file
- ./da-indexer-server/config/base.env
volumes:
## optional: you can use default config or provide custom via file
- ./da-indexer-server/config/eigenda.toml:/app/config.toml
extra_hosts:
- "host.docker.internal:host-gateway"