-
Notifications
You must be signed in to change notification settings - Fork 58
/
origin.release.irec.yml
78 lines (73 loc) · 2.06 KB
/
origin.release.irec.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
services:
ui:
image: energyweb/origin-ui:latest
restart: unless-stopped
env_file:
- ./.env
environment:
DISABLED_UI_FEATURES: IRecConnect;DevicesImport;CertificatesImport
PORT: 80
ports:
- 3000:80
networks:
- irec-app-network
depends_on:
backend:
condition: service_healthy
backend:
image: energyweb/migrations-irec:latest
restart: 'no'
env_file:
- ./.env
environment:
DB_HOST: postgres
DB_PORT: 5432
WEB3: http://ganache-cli:8545
networks:
- irec-app-network
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
healthcheck:
test: curl --fail http://127.0.0.1:$BACKEND_PORT/api/configuration || exit 1
interval: 3s
timeout: 3s
retries: 1
start_period: 60s
depends_on:
ganache-cli:
condition: service_started
postgres:
condition: service_healthy
ganache-cli:
image: trufflesuite/ganache-cli
command: ganache-cli -m "chalk park staff buzz chair purchase wise oak receive avoid avoid home" -l 8000000 -e 1000000 -a 40 -h 0.0.0.0
networks:
- irec-app-network
ports:
- 8545:8545
postgres:
image: postgres
restart: unless-stopped
env_file:
- ./.env
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: origin
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 1s
networks:
- irec-app-network
volumes:
- irec-postgres-data:/var/lib/postgresql/data
# ports:
# - 5432:5432
depends_on:
- ganache-cli
volumes:
irec-postgres-data:
networks:
irec-app-network:
driver: bridge