-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.esp.yaml
143 lines (133 loc) · 3.67 KB
/
docker-compose.esp.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
137
138
139
140
141
142
143
# This docker-compose is used for testing GCP ESP and Swagger spec.
version: "3.7"
services:
prime:
container_name: prime
build:
context: prime
dockerfile: Dockerfile.test
environment:
- GCP_PROJECT_ID=${GCP_PROJECT_ID}
# used by Stackdriver Tracing
- GOOGLE_CLOUD_PROJECT=${GCP_PROJECT_ID}
# used by Datastore, Pub/Sub, Stackdriver Tracing
- GOOGLE_APPLICATION_CREDENTIALS=/secret/prime-service-account.json
- PUBSUB_EMULATOR_HOST=pubsub-emulator:8085
- PUBSUB_PROJECT_ID=${GCP_PROJECT_ID}
- JUMIO_API_TOKEN=
- JUMIO_API_SECRET=
- STRIPE_API_KEY=${STRIPE_API_KEY}
- STRIPE_ENDPOINT_SECRET=${STRIPE_ENDPOINT_SECRET}
- DATASTORE_EMULATOR_HOST=localhost:9090
- DATASTORE_PROJECT_ID=${GCP_PROJECT_ID}
- MANDRILL_API_KEY=
- ACCEPTANCE_TESTING=true
ports:
- "9090:8080"
- "8082:8082"
depends_on:
- "ext-auth-provider"
- "datastore-emulator"
- "pubsub-emulator"
- "neo4j"
command: ["/bin/bash", "./wait.sh"]
tmpfs:
- /data
networks:
net:
aliases:
- "prime"
ipv4_address: 172.16.238.5
default:
esp:
container_name: esp
image: gcr.io/endpoints-release/endpoints-runtime:1
volumes:
- "./prime/config:/esp"
- "./certs/ocs.dev.ostelco.org:/etc/nginx/ssl"
command: >
--service=ocs.dev.ostelco.org
--rollout_strategy=managed
--http2_port=80
--ssl_port=443
--backend=grpc://172.16.238.5:8082
--service_account_key=/esp/prime-service-account.json
networks:
net:
aliases:
- "ocs.dev.ostelco.org"
ipv4_address: 172.16.238.4
default:
ocsgw:
container_name: ocsgw
build: ocsgw
depends_on:
- "prime"
command: ["./wait_including_esps.sh"]
environment:
- OCS_GRPC_SERVER=ocs.dev.ostelco.org
- SERVICE_FILE=prime-service-account.json
- GOOGLE_CLOUD_PROJECT=${GCP_PROJECT_ID}
- PUBSUB_EMULATOR_HOST=pubsub-emulator:8085
- PUBSUB_PROJECT_ID=${GCP_PROJECT_ID}
- PUBSUB_CCR_TOPIC_ID=ocs-ccr
- PUBSUB_CCA_TOPIC_ID=ocs-cca
- PUBSUB_CCA_SUBSCRIPTION_ID=ocsgw-cca-sub
- PUBSUB_ACTIVATE_SUBSCRIPTION_ID=ocsgw-activate-sub
volumes:
- ./ocsgw/cert:/cert/
- ./ocsgw/config:/config/
networks:
net:
aliases:
- "ocsgw"
ipv4_address: 172.16.238.3
default:
acceptance-tests:
container_name: acceptance-tests
build: acceptance-tests
depends_on:
- "ocsgw"
- "prime"
command: ["./wait.sh"]
environment:
- PRIME_SOCKET=prime:8080
- OCS_SOCKET=prime:8082
- STRIPE_API_KEY=${STRIPE_API_KEY}
- GOOGLE_APPLICATION_CREDENTIALS=/secret/prime-service-account.json
- PUBSUB_EMULATOR_HOST=pubsub-emulator:8085
networks:
net:
ipv4_address: 172.16.238.2
default:
neo4j:
container_name: "neo4j"
image: neo4j:3.4.9
environment:
- NEO4J_AUTH=none
ports:
- "7687:7687"
- "7474:7474"
tmpfs: "/data"
pubsub-emulator:
container_name: pubsub-emulator
image: knarz/pubsub-emulator
datastore-emulator:
container_name: datastore-emulator
image: google/cloud-sdk:272.0.0
expose:
- "8081"
environment:
- CLOUDSDK_CORE_PROJECT=${GCP_PROJECT_ID}
- DATASTORE_DATASET=${GCP_PROJECT_ID}
command: ["gcloud", "beta", "emulators", "datastore", "start", "--host-port=0.0.0.0:8081"]
ext-auth-provider:
container_name: ext-auth-provider
build: ext-auth-provider
networks:
net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24