-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
136 lines (127 loc) · 3.04 KB
/
docker-compose.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
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
---
version: "3.7"
services:
jenkins:
image: mockserver/mockserver
environment:
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/jenkins_api_mock.json
volumes:
- type: bind
source: ./fixtures/jenkins
target: /config
read_only: True
command: -serverPort 8080
mysql:
image: mariadb:latest
environment:
MYSQL_DATABASE: kpireport
MYSQL_USER: kpireport
MYSQL_PASSWORD: kpireport_pass
MYSQL_ROOT_PASSWORD: root_pass
volumes:
- type: bind
source: ./fixtures/mysql
target: /docker-entrypoint-initdb.d
read_only: True
prometheus:
image: mockserver/mockserver
environment:
MOCKSERVER_INITIALIZATION_JSON_PATH: /config/prometheus_api_mock.json
volumes:
- type: bind
source: ./fixtures/prometheus
target: /config
read_only: True
command: -serverPort 9090
smtp:
image: mailhog/mailhog:latest
ports:
- "127.0.0.1:8025:8025"
aws:
image: localstack/localstack
environment:
SERVICES: s3
volumes:
- type: bind
source: ./fixtures/aws
target: /docker-entrypoint-initaws.d
read_only: True
nginx:
image: nginx:stable
volumes:
- type: bind
source: ../_build
target: /usr/share/nginx/html
read_only: True
ports:
- "127.0.0.1:8080:80"
waiter:
deploy:
replicas: 0
image: willwill/wait-for-it
kpireport:
deploy:
replicas: 0
image: ${DOCKER_IMAGE}:${DOCKER_TAG}
stdin_open: True
tty: True
env_file: .env
volumes:
- type: bind
source: ./examples
target: /opt/kpireport/examples
read_only: True
- type: bind
source: ./_build
target: /opt/kpireport/_build
- type: bind
source: ${SCP_IDENTITY_FILE}
target: /root/.ssh/id_rsa
read_only: True
- type: bind
source: ${GOOGLE_OAUTH2_KEY_FILE}
target: /etc/kpireporter/google_oauth2_key.json
read_only: True
depends_on:
- jenkins
- mysql
- prometheus
- smtp
explorer:
deploy:
replicas: 0
image: kpireporter/explorer:edge
env_file: .env
environment:
FLASK_ENV: development
KPIREPORT_PLUGINS: all
# See example below
# EXTRA_PLUGINS: /ext
ports:
- "5000:5000"
volumes:
- type: bind
source: ./examples
target: /opt/kpireport-explorer/examples
read_only: True
# Example: mounting local extension
# - type: bind
# source: path/to/extension
# target: /ext
# read_only: True
- type: bind
source: ./_build
target: /opt/kpireport-explorer/_build
- type: bind
source: ${SCP_IDENTITY_FILE}
target: /root/.ssh/id_rsa
read_only: True
- type: bind
source: ${GOOGLE_OAUTH2_KEY_FILE}
target: /etc/kpireporter/google_oauth2_key.json
read_only: True
depends_on:
- jenkins
- mysql
- prometheus
- smtp