This repository has been archived by the owner on Nov 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
116 lines (109 loc) · 2.38 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
version: '2'
services:
redis:
image: "redis:alpine"
ports:
- "${CACHE_PORT}:${CACHE_PORT}"
# metricstore:
# build:
# context: lib/metricstore
# args:
# - POSTGRES_PASSWORD=${DB_PASSWORD}
# - POSTGRES_USER=${DB_USER}
# - POSTGRES_DB=${DB_NAME}
# env_file: .env
# image: sarjitsu:metricstore
# expose:
# - "${DB_PORT}"
# environment:
# - POSTGRES_PASSWORD=${DB_PASSWORD}
# - POSTGRES_USER=${DB_USER}
# - POSTGRES_DB=${DB_NAME}
# ports:
# - "${METRICSTORE_PORT_MAPPING}:${DB_PORT}"
metricstore:
build:
context: lib/metricstore
env_file: .env
image: sarjitsu:metricstore_official
expose:
- "${DB_PORT}"
environment:
- POSTGRESQL_PASSWORD=${DB_PASSWORD}
- POSTGRESQL_USER=${DB_USER}
- POSTGRESQL_DATABASE=${DB_NAME}
ports:
- "${METRICSTORE_PORT_MAPPING}:${DB_PORT}"
datasource:
build:
context: lib/datasource
args:
ES_PORT: $ES_PORT
env_file: .env
image: sarjitsu:elasticsearch_new
ports:
- "${DATASOURCE_PORT_MAPPING}:${ES_PORT}"
frontend:
build:
context: lib/frontend
args:
GRAFANA_PORT: $GRAFANA_PORT
env_file: .env
image: sarjitsu:grafana_new
ports:
- "${FRONTEND_PORT_MAPPING}:${GRAFANA_PORT}"
links:
- metricstore
- datasource
depends_on:
- metricstore
- datasource
middleware:
build:
context: lib/middleware
args:
MIDDLEWARE_PORT: $MIDDLEWARE_PORT
env_file: .env
image: sarjitsu:api
ports:
- "${MIDDLEWARE_PORT_MAPPING}:${MIDDLEWARE_PORT}"
depends_on:
- datasource
links:
- datasource
- metricstore
- frontend
web:
restart: always
build:
context: lib/backend
args:
BACKEND_SERVER_PORT: $BACKEND_SERVER_PORT
env_file: .env
image: sarjitsu:backend
ports:
- "${BACKEND_PORT_MAPPING}:${BACKEND_SERVER_PORT}"
depends_on:
- metricstore
- datasource
- redis
- frontend
- middleware
links:
- metricstore
- datasource
- frontend
- middleware
- redis
nginx:
restart: always
# build: lib/proxy
build:
context: lib/proxy
args:
PROXY_PORT: $PROXY_PORT
image: sarjitsu:proxy
ports:
- "${PROXY_PORT_MAPPING}:${PROXY_PORT}"
links:
- web:web