-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (36 loc) · 910 Bytes
/
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
version: "3"
services:
echo-api:
image: echo-api
build:
context: ./echoApi
dockerfile: ./Dockerfile
restart: on-failure
client-test:
image: client-test
build:
context: ./clientTest
dockerfile: ./Dockerfile
command: >
bash -c
'while [[ "$$(curl --connect-timeout 5 -s -o /dev/null -w ''%{http_code}'' esp:8082/echo)" != "200" ]];
do echo ..;
sleep 5;
done;
echo backend is up;
npm run start'
env_file: .env
environment:
BASE_API_URL: http://esp:8082
depends_on: [esp]
esp:
image: gcr.io/endpoints-release/endpoints-runtime:2
command: >
--service=example-project-317294.appspot.com
--rollout_strategy=managed
--listener_port=8082
--backend=echo-api
--non_gcp
--service_account_key=/esp/service-account.json
volumes:
- ./credentials:/esp