-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.ccdscan.yaml
64 lines (64 loc) · 1.8 KB
/
docker-compose.ccdscan.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.0"
services:
ccdscan_frontend:
image: ${CCDSCAN_FRONTEND_IMAGE}
environment:
- HOST=0.0.0.0
- PORT=8000
ports:
- "5080:8000"
depends_on:
- ccdscan_backend
stop_signal: SIGKILL
networks:
- ccdscan
build:
context: ./ccdscan
dockerfile: ./frontend.Dockerfile
args:
tag: frontend/${CCDSCAN_FRONTEND_VERSION}
ccdscan_backend:
image: ${CCDSCAN_BACKEND_IMAGE}
ports:
- "5000:5000"
environment:
- ImportValidation__Enabled=false
- ConcordiumNodeGrpc__AuthenticationToken=rpcadmin
- ConcordiumNodeGrpc__Address=http://node:11000
- PostgresDatabase__ConnectionString=
Host=ccdscan_timescaledb;
Port=5432;
Database=ccscan;
User ID=postgres;
Password=password;
Include Error Detail=true;
# Would be nice if this could be disabled...
- PostgresDatabase__ConnectionStringNodeCache=
Host=ccdscan_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.${DOMAIN}/nodesSummary
networks:
- concordium
- ccdscan
depends_on:
- ccdscan_timescaledb
restart: unless-stopped # it seems like startup sometimes fails because the DB isn't ready yet
# TODO Connect to external DB by default and enable this with another override.
ccdscan_timescaledb:
image: ${CCDSCAN_TIMESCALEDB_IMAGE-timescale/timescaledb:latest-pg14}
environment:
- POSTGRES_PASSWORD=password
networks:
- ccdscan
volumes:
- ccdscan:/var/lib/postgresql/data
volumes:
ccdscan:
networks:
ccdscan: