-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yaml
37 lines (36 loc) · 1.45 KB
/
docker-compose.yaml
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
# Deployment for running a CCDScan Backend instance, including a TimescaleDB instance.
# The backend may be run as an existing (official) image or built from local source.
# See the readme for usage.
version: "3"
services:
backend:
image: ${CCDSCAN_BACKEND_IMAGE-concordium/ccdscan:test}
build: ./backend
ports:
- "${CCDSCAN_BACKEND_PORT-5000}:5000"
environment:
- ImportValidation__Enabled=false
- ConcordiumNodeGrpc__AuthenticationToken=rpcadmin
- ConcordiumNodeGrpc__Address=${CCDSCAN_NODE_GRPC_ADDRESS-http://172.17.0.1:10000}
- PostgresDatabase__ConnectionString=Host=timescaledb;Port=5432;Database=ccscan;User ID=postgres;Password=password;Include Error Detail=true;
- PostgresDatabase__ConnectionStringNodeCache=Host=timescaledb;Port=5432;Database=ccscan_node_cache;User ID=postgres;Password=password;Include Error Detail=true;
- FeatureFlags__ConcordiumNodeImportEnabled=true
- FeatureFlags__MigrateDatabasesAtStartup=true
- NodeCollectorService__Address=https://dashboard.${CCDSCAN_DOMAIN-testnet.concordium.com}/nodesSummary
networks:
- ccdscan
depends_on:
- timescaledb
restart: unless-stopped # it seems like startup sometimes fails because the DB isn't ready yet
timescaledb:
image: timescale/timescaledb:latest-pg14
environment:
- POSTGRES_PASSWORD=password
networks:
- ccdscan
volumes:
- ccdscan:/var/lib/postgresql/data
volumes:
ccdscan:
networks:
ccdscan: