This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.yml
61 lines (59 loc) · 1.77 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
# Copyright 2018 PokitDok, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -----------------------------------------------------------------------------
version: "2.1"
services:
rest-api-proxy:
image: nginx
container_name: sawtooth-explorer-rest-api-proxy
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf:ro
- dist-html:/www/ste
ports:
- "8090:8090"
- "8091:8091"
command: [nginx, '-g', 'daemon off;']
ng-server:
build:
context: .
args:
- http_proxy
- https_proxy
- no_proxy
depends_on:
- rest-api-proxy
container_name: sawtooth-explorer
ports:
- "4200:4200"
command: npm run start -- --host 0.0.0.0 --port 4200
environment:
SELENIUM_ADDRESS: http://selenium:4444/wd/hub
SELENIUM_HOST: selenium
TEST_WEB_HOST: ng-server
BASE_URL: http://ng-server:4200
NG_DOCKER_COMPOSE: "true"
volumes:
- ./:/usr/src/app
- /usr/src/app/node_modules
- dist-html:/usr/src/dist
selenium:
image: selenium/standalone-chrome
environment:
JAVA_OPTS: -Dselenium.LOGGER.level=WARNING -Dwebdriver.chrome.whitelistedIps="ng-server"
volumes:
- "/dev/shm:/dev/shm"
ports:
- 4444:4444
volumes:
dist-html: