forked from reportportal/reportportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yml
157 lines (138 loc) · 3.85 KB
/
docker-compose-local.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
## You can generate a custom docker compose file automatically on http://reportportal.io/download (Step 2)
## This is example of Docker Compose for ReportPortal
## Do not forget to configure data volumes for production usage
## Execute 'docker-compose -f docker-compose-local.yml -p reportportal up -d --force-recreate' --build
## to start all containers in daemon mode
## Where:
## '-f docker-compose-local.yml' -- specifies this compose file
## '-p reportportal' -- specifies container's prefix (project name)
## '-d' -- enables daemon mode
## '--force-recreate' -- forces re-recreating of all containers
## '--build' -- build images before starting containers.
version: '2'
services:
mongodb:
image: mongo:3.4
ports:
- "27017:27017"
volumes:
- ./data/mongo:/data/db
restart: always
registry:
image: consul:1.0.6
volumes:
- ./data/consul:/consul/data
ports:
- "8500:8500"
# - "8300:8300"
# - "53:8600/udp"
command: "agent -server -bootstrap-expect=1 -ui -client 0.0.0.0"
environment:
- 'CONSUL_LOCAL_CONFIG={"leave_on_terminate": true}'
restart: always
uat:
build:
context: ./service-authorization
dockerfile: ./docker/Dockerfile-develop
#ports:
# - "9999:9999"
depends_on:
- mongodb
environment:
- RP_PROFILES=docker
- RP_SESSION_LIVE=86400 #in seconds
# - RP_MONGO_URI=mongodb://localhost:27017
restart: always
### Another option for gateway
### Can be used instead of traefik
# gateway:
# image: fabiolb/fabio:1.5.8-go1.10
# ports:
# - "9998:9998" # GUI/management
# - "8080:9999" # HTTP exposed
# environment:
# - FABIO_REGISTRY_CONSUL_ADDR=registry:8500
# - FABIO_REGISTRY_CONSUL_REGISTER_NAME=gateway
# - FABIO_PROXY_ADDR=:9999;rt=300s;wt=300s
# restart: always
gateway:
image: traefik:1.6.3
ports:
- "8080:8080" # HTTP exposed
# - "8081:8081" # HTTP Administration exposed
command:
- --consulcatalog.endpoint=registry:8500
- --defaultEntryPoints=http
- --entryPoints=Name:http Address::8080
- --web
- --web.address=:8081
restart: always
index:
build:
context: ./service-index
dockerfile: Dockerfile-develop
environment:
- RP_SERVER_PORT=8080
- RP_PROXY_CONSUL=true
depends_on:
- registry
- gateway
restart: always
api:
build:
context: ./service-api
dockerfile: docker/Dockerfile-develop
depends_on:
- mongodb
environment:
- RP_PROFILES=docker
- JAVA_OPTS=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp
# - RP_MONGO_URI=mongodb://localhost:27017
restart: always
ui:
build:
context: ./service-ui
dockerfile: Dockerfile-full
environment:
- RP_SERVER.PORT=8080
- RP_CONSUL.TAGS=urlprefix-/ui opts strip=/ui
- RP_CONSUL.ADDRESS=registry:8500
restart: always
analyzer:
build:
context: ./service-analyzer
dockerfile: DockerfileDev
depends_on:
- registry
- gateway
- elasticsearch
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.1
restart: always
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
ulimits:
memlock:
soft: -1
hard: -1
# ports:
# - "9200:9200"
jira:
build:
context: ./service-jira
dockerfile: docker/Dockerfile-develop
environment:
- RP_PROFILES=docker
# - RP_MONGO_URI=mongodb://localhost:27017
restart: always
rally:
build:
context: ./service-rally
dockerfile: docker/Dockerfile-develop
environment:
- RP_PROFILES=docker
# - RP_MONGO_URI=mongodb://localhost:27017
restart: always