-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
140 lines (139 loc) · 3.68 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
133
134
135
136
137
138
139
140
version: '2'
services:
nginx:
build: ./nginx
depends_on:
- noaa-api-0
- noaa-goes-api-1
- web-api-1
- web-api-2
- web-dash-1
- web-dash-2
- web-ui-1
ports:
- "${WEB_PORT}:80"
influxdb:
build: ./influxdb
image: "dendro:influxdb"
ports:
- "${INFLUXDB_PORT}:8086"
volumes:
- "${INFLUXDB_VOLUME}"
kapacitor:
build: ./kapacitor
depends_on:
- influxdb
image: "dendro:kapacitor"
ports:
- "${KAPACITOR_PORT}:9092"
environment:
- KAPACITOR_INFLUXDB_0_URLS_0=http://influxdb:${INFLUXDB_PORT}
volumes:
- "${KAPACITOR_VOLUME}"
mongo:
build: ./mongo
image: "dendro:mongo"
ports:
- "${MONGO_PORT}:27017"
entrypoint: /auth-entrypoint.sh
command: mongod
environment:
- MONGO_ADMIN_USER
- MONGO_ADMIN_PASS
- MONGO_DB_NAME
- MONGO_DB_USER
- MONGO_DB_PASS
volumes:
- "${MONGO_DB_VOLUME}"
migrations:
depends_on:
- mongo
image: "dendro/dendra-mongo-migrations"
environment:
- MONGO_URL=mongodb://${MONGO_DB_USER}:${MONGO_DB_PASS}@mongo:27017/${MONGO_DB_NAME}
nats-streaming:
build: ./nats-streaming
image: "dendro:nats-streaming"
ports:
- "${NATS_STREAM_PORT}:4222"
- "${NATS_STREAM_MONITOR_PORT}:8222"
command: -m 8222 -store file -dir datastore
volumes:
- "${NATS_STREAM_VOLUME}"
noaa-api-0:
image: "dendro/dendra-noaa-nws-api"
noaa-goes-api-1:
image: "dendro/dendra-noaa-goes-api"
environment:
- NOAA_GOES_DDS_USER
- NOAA_GOES_DDS_PASS
json-archive-api-1:
image: "dendro/dendra-json-archive-api"
volumes:
- "${JSON_ARCHIVE_VOLUME}"
csi-worker:
build: ./csi-worker
image: "dendro:csi-worker"
depends_on:
- influxdb
- json-archive-api-1
environment:
- CSI_LDMP_HOST
- CSI_LDMP_PORT
- INFLUXDB_API_URL=http://influxdb:${INFLUXDB_PORT}
- JSON_ARCHIVE_API_URL=http://json-archive-api-1:8080
volumes:
- "${CSI_WORKER_VOLUME}"
goes-worker:
build: ./goes-worker
image: "dendro:goes-worker"
depends_on:
- influxdb
- json-archive-api-1
- noaa-goes-api-1
environment:
- INFLUXDB_API_URL=http://influxdb:${INFLUXDB_PORT}
- JSON_ARCHIVE_API_URL=http://json-archive-api-1:8080
- NOAA_GOES_API_URL=http://noaa-goes-api-1:8080
volumes:
- "${GOES_WORKER_VOLUME}"
web-api-1:
depends_on:
- mongo
image: "dendro/dendra-web-api"
environment:
- INFLUXDB_API_URL=http://influxdb:${INFLUXDB_PORT}
- LEGACY_MYSQL_URL
- MONGO_URL=mongodb://${MONGO_DB_USER}:${MONGO_DB_PASS}@mongo:27017/${MONGO_DB_NAME}
- NOAA_GOES_API_URL=http://noaa-goes-api-1:8080
- NOAA_NWS_API_URL=http://noaa-api-0:8080
- NOAA_API_URL=http://noaa-api-0:8080
- WEB_API_SECRET
web-api-2:
depends_on:
- mongo
image: "dendro/dendra-web-api"
environment:
- INFLUXDB_API_URL=http://influxdb:${INFLUXDB_PORT}
- LEGACY_MYSQL_URL
- MONGO_URL=mongodb://${MONGO_DB_USER}:${MONGO_DB_PASS}@mongo:27017/${MONGO_DB_NAME}
- NOAA_GOES_API_URL=http://noaa-goes-api-1:8080
- NOAA_NWS_API_URL=http://noaa-api-0:8080
- NOAA_API_URL=http://noaa-api-0:8080
- WEB_API_SECRET
web-dash-1:
image: "dendro/dendro-web-dash"
environment:
- WEB_DASH_API_PATH
- WEB_DASH_API_URI
web-dash-2:
image: "dendro/dendro-web-dash"
environment:
- WEB_DASH_API_PATH
- WEB_DASH_API_URI
web-ui-1:
image: "dendro/dendra-web-ui"
environment:
- WEB_UI_API_PATH
- WEB_UI_API_URI=http://nginx
- WEB_UI_CLIENT_API_URI=${WEB_UI_API_URI}