forked from ostelco/ostelco-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.seagull.yaml
135 lines (125 loc) · 3.52 KB
/
docker-compose.seagull.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
# This docker-compose is used for load testing Diameter traffic using Seagull.
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=
- LOCAL_TESTING=true
- DB_USER=postgres_user
- DB_PASSWORD=postgres_password
- DB_URL=postgres:5432/sim-inventory
- SMDPLUS_ES2PLUS_ENDPOINT=http://smdp-plus-emulator:8080
- ACCEPTANCE_TESTING=true
ports:
- "9090:8080"
- "8082:8082"
- "8081:8081"
depends_on:
- "ext-auth-provider"
- "datastore-emulator"
- "pubsub-emulator"
- "smdp-plus-emulator"
- "neo4j"
command: ["/bin/bash", "./wait.sh"]
tmpfs:
- /data
networks:
net:
aliases:
- "prime"
ipv4_address: 172.16.238.5
default:
ocsgw:
container_name: ocsgw
build: ocsgw
depends_on:
- "pubsub-emulator"
- "prime"
command: ["./wait.sh"]
environment:
- DISABLE_TLS=true
- OCS_GRPC_SERVER=prime:8082
- 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
- DIAMETER_CONFIG_FILE=server-jdiameter-config.xml
- OCS_DATASOURCE_TYPE=Proxy
- OCS_SECONDARY_DATASOURCE_TYPE=PubSub
- CONFIG_FOLDER=/config/
- "JAVA_OPTS=-Xms512m -Xmx1024m -server"
volumes:
- ./ocsgw/cert:/cert/
- ./ocsgw/config:/config/
networks:
net:
aliases:
- "ocsgw"
ipv4_address: 172.16.238.3
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
smdp-plus-emulator:
container_name: smdp-plus-emulator
build: sim-administration/sm-dp-plus-emulator
ports:
- "18080:8080"
- "18081:8081"
postgres:
container_name: postgres
build:
context: sim-administration/postgres
dockerfile: Dockerfile
tmpfs: "/var/lib/postgresql/data"
ports:
- "55432:5432"
networks:
net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24