forked from uber/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docker support for mysql (uber#1522)
- Loading branch information
1 parent
d181c67
commit 4257916
Showing
5 changed files
with
211 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
log: | ||
stdout: true | ||
level: "${LOG_LEVEL}" | ||
|
||
persistence: | ||
defaultStore: mysql-default | ||
visibilityStore: mysql-visibility | ||
numHistoryShards: ${NUM_HISTORY_SHARDS} | ||
datastores: | ||
mysql-default: | ||
sql: | ||
driverName: "mysql" | ||
databaseName: "${DBNAME}" | ||
connectAddr: "${MYSQL_SEEDS}:3306" | ||
connectProtocol: "tcp" | ||
user: "${MYSQL_USER}" | ||
password: "${MYSQL_PWD}" | ||
mysql-visibility: | ||
sql: | ||
driverName: "mysql" | ||
databaseName: "${VISIBILITY_DBNAME}" | ||
connectAddr: "${MYSQL_SEEDS}:3306" | ||
connectProtocol: "tcp" | ||
user: "${MYSQL_USER}" | ||
password: "${MYSQL_PWD}" | ||
|
||
ringpop: | ||
name: cadence | ||
bootstrapMode: hosts | ||
bootstrapHosts: ${RINGPOP_SEEDS_JSON_ARRAY} | ||
maxJoinDuration: 30s | ||
|
||
services: | ||
frontend: | ||
rpc: | ||
port: 7933 | ||
bindOnIP: ${BIND_ON_IP} | ||
metrics: | ||
statsd: | ||
hostPort: "${STATSD_ENDPOINT}" | ||
prefix: "cadence-frontend" | ||
|
||
matching: | ||
rpc: | ||
port: 7935 | ||
bindOnIP: ${BIND_ON_IP} | ||
metrics: | ||
statsd: | ||
hostPort: "${STATSD_ENDPOINT}" | ||
prefix: "cadence-matching" | ||
|
||
history: | ||
rpc: | ||
port: 7934 | ||
bindOnIP: ${BIND_ON_IP} | ||
metrics: | ||
statsd: | ||
hostPort: "${STATSD_ENDPOINT}" | ||
prefix: "cadence-history" | ||
|
||
worker: | ||
rpc: | ||
port: 7939 | ||
bindOnIP: ${BIND_ON_IP} | ||
metrics: | ||
statsd: | ||
hostPort: "${STATSD_ENDPOINT}" | ||
prefix: "cadence-worker" | ||
|
||
clustersInfo: | ||
enableGlobalDomain: false | ||
failoverVersionIncrement: 10 | ||
masterClusterName: "active" | ||
currentClusterName: "active" | ||
clusterInitialFailoverVersion: | ||
active: 0 | ||
clusterAddress: | ||
active: | ||
rpcName: "cadence-frontend" | ||
rpcAddress: "127.0.0.1:7933" | ||
|
||
dcRedirectionPolicy: | ||
policy: "noop" | ||
toDC: "" | ||
|
||
archival: | ||
status: enabled | ||
blobstore: | ||
storeDirectory: "/tmp/blobstore/" | ||
defaultBucket: | ||
name: "cadence-development" | ||
owner: "cadence" | ||
retentionDays: 10 | ||
customBuckets: | ||
- name: "custom-bucket-1" | ||
owner: "custom-owner-1" | ||
retentionDays: 10 | ||
- name: "custom-bucket-2" | ||
owner: "custom-owner-2" | ||
retentionDays: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: '3' | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
- "MYSQL_ROOT_PASSWORD=root" | ||
statsd: | ||
image: hopsoft/graphite-statsd | ||
ports: | ||
- "8080:80" | ||
- "2003:2003" | ||
- "8125:8125" | ||
- "8126:8126" | ||
cadence: | ||
image: ubercadence/server:0.5.4 | ||
ports: | ||
- "7933:7933" | ||
- "7934:7934" | ||
- "7935:7935" | ||
- "7939:7939" | ||
environment: | ||
- "DB=mysql" | ||
- "MYSQL_USER=root" | ||
- "MYSQL_PWD=root" | ||
- "MYSQL_SEEDS=mysql" | ||
- "STATSD_ENDPOINT=statsd:8125" | ||
depends_on: | ||
- mysql | ||
- statsd | ||
cadence-web: | ||
image: ubercadence/web:3.1.2 | ||
environment: | ||
- "CADENCE_TCHANNEL_PEERS=cadence:7933" | ||
ports: | ||
- "8088:8088" | ||
depends_on: | ||
- cadence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters