-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.ocs.yaml
82 lines (75 loc) · 2.02 KB
/
docker-compose.ocs.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
# This docker-compose is used for load testing OCS using gRPC or Pub/Sub traffic.
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=
- LOAD_TESTING=true
- 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:
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
ports:
- "8085:8085"
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