-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
132 lines (130 loc) · 4.84 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '3'
services:
amqp-broker:
image: rabbitmq:3-management
ports:
- 15672:15672
- 5672:5672
environment:
RABBITMQ_DEFAULT_USER: 'guest'
RABBITMQ_DEFAULT_PASS: 'guest'
volumes:
- ./data/rabbitmq:/var/lib/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 10s
retries: 3
ocpp-db:
image: citrineos/postgis:v1.1.0
ports:
- 5432:5432
volumes:
- ./data/postgresql/pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: citrine
POSTGRES_USER: citrine
POSTGRES_PASSWORD: 'citrine'
healthcheck:
test: 'pg_isready --username=citrine'
interval: 5s
timeout: 10s
retries: 5
citrine:
build:
context: ..
dockerfile: ./Server/deploy.Dockerfile
volumes:
- ../package-lock.json:/usr/local/apps/citrineos/package-lock-host.json
- ../package.json:/usr/local/apps/citrineos/package.json
- ../tsconfig.json:/usr/local/apps/citrineos/tsconfig.json
- ../tsconfig.build.json:/usr/local/apps/citrineos/tsconfig.build.json
- ../Server:/usr/local/apps/citrineos/Server
- ../00_Base:/usr/local/apps/citrineos/00_Base
- ../01_Data:/usr/local/apps/citrineos/01_Data
- ../02_Util:/usr/local/apps/citrineos/02_Util
- ../03_Modules/Certificates:/usr/local/apps/citrineos/03_Modules/Certificates
- ../03_Modules/Configuration:/usr/local/apps/citrineos/03_Modules/Configuration
- ../03_Modules/EVDriver:/usr/local/apps/citrineos/03_Modules/EVDriver
- ../03_Modules/Monitoring:/usr/local/apps/citrineos/03_Modules/Monitoring
- ../03_Modules/OcppRouter:/usr/local/apps/citrineos/03_Modules/OcppRouter
- ../03_Modules/Reporting:/usr/local/apps/citrineos/03_Modules/Reporting
- ../03_Modules/SmartCharging:/usr/local/apps/citrineos/03_Modules/SmartCharging
- ../03_Modules/Transactions:/usr/local/apps/citrineos/03_Modules/Transactions
- /usr/local/apps/citrineos/node_modules
- /usr/local/apps/citrineos/Server/node_modules
- /usr/local/apps/citrineos/00_Base/node_modules
- /usr/local/apps/citrineos/01_Data/node_modules
- /usr/local/apps/citrineos/02_Util/node_modules
- /usr/local/apps/citrineos/03_Modules/Certificates/node_modules
- /usr/local/apps/citrineos/03_Modules/Configuration/node_modules
- /usr/local/apps/citrineos/03_Modules/EVDriver/node_modules
- /usr/local/apps/citrineos/03_Modules/Monitoring/node_modules
- /usr/local/apps/citrineos/03_Modules/OcppRouter/node_modules
- /usr/local/apps/citrineos/03_Modules/Reporting/node_modules
- /usr/local/apps/citrineos/03_Modules/SmartCharging/node_modules
- /usr/local/apps/citrineos/03_Modules/Transactions/node_modules
- /usr/local/apps/citrineos/dist/
- /usr/local/apps/citrineos/Server/dist/
- /usr/local/apps/citrineos/00_Base/dist/
- /usr/local/apps/citrineos/01_Data/dist/
- /usr/local/apps/citrineos/02_Util/dist/
- /usr/local/apps/citrineos/03_Modules/Certificates/dist/
- /usr/local/apps/citrineos/03_Modules/Configuration/dist/
- /usr/local/apps/citrineos/03_Modules/EVDriver/dist/
- /usr/local/apps/citrineos/03_Modules/Monitoring/dist/
- /usr/local/apps/citrineos/03_Modules/OcppRouter/dist/
- /usr/local/apps/citrineos/03_Modules/Reporting/dist/
- /usr/local/apps/citrineos/03_Modules/SmartCharging/dist/
- /usr/local/apps/citrineos/03_Modules/Transactions/dist/
environment:
APP_NAME: 'all'
APP_ENV: 'docker'
CITRINEOS_UTIL_DIRECTUS_USERNAME: 'admin@citrineos.com'
CITRINEOS_UTIL_DIRECTUS_PASSWORD: 'CitrineOS!'
depends_on:
ocpp-db:
condition: service_healthy
amqp-broker:
condition: service_healthy
directus:
condition: service_healthy
ports:
- 8080:8080
- 8081:8081
- 8082:8082
- 9229:9229
directus:
build:
context: ../DirectusExtensions
dockerfile: ./directus.Dockerfile
ports:
- 8055:8055
volumes:
- ./data/directus/uploads:/directus/uploads
- ./directus-env-config.cjs:/directus/config.cjs
depends_on:
ocpp-db:
condition: service_healthy
environment:
APP_NAME: 'all'
KEY: '1234567890'
SECRET: '0987654321'
ADMIN_EMAIL: 'admin@citrineos.com'
ADMIN_PASSWORD: 'CitrineOS!'
CONFIG_PATH: '/directus/config.cjs'
EXTENSIONS_AUTO_RELOAD: 'true'
EXTENSIONS_CACHE_TTL: '1s'
DB_CLIENT: 'pg'
DB_HOST: ocpp-db
DB_PORT: 5432
DB_DATABASE: 'citrine'
DB_USER: 'citrine'
DB_PASSWORD: 'citrine'
WEBSOCKETS_ENABLED: 'true'
healthcheck:
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8055/server/health || exit 1
start_period: 15s
interval: 15s
timeout: 15s
retries: 3