Skip to content

Commit

Permalink
OZ-244: CONNECT_MYSQL_SERVER_ID configurable at deployment time (#9)
Browse files Browse the repository at this point in the history
* OZ-244: Make CONNECT_MYSQL_SERVER_ID to be configurable at deployment time

* Regorganised .env

* Add Debezium and Minio sections

---------

Co-authored-by: Dimitri R <[email protected]>
  • Loading branch information
enyachoke and mks-d authored Sep 25, 2023
1 parent a5aee5e commit 9667af6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CONNECT_MYSQL_PASSWORD=3cY8Kve4lGey
CONNECT_MYSQL_PORT=3306

# Superset
# The secret key is used by Superset for encryption. You should generate one with something like `openssl rand -base64 48` and replace this sample secret.
# The secret key is used by Superset for encryption. You should generate one with something like `openssl rand -base64 48` and replace the sample secret below.
SECRET_KEY=000000OOOO00000_ThisSampleSecretShouldBeReplaced_00000OOOO000000
SUPERSET_DB=superset
SUPERSET_DB_USER=superset
Expand All @@ -45,8 +45,6 @@ POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
POSTGRES_DB_HOST=postgresql

CONNECT_MYSQL_HOSTNAME=mysql

# Flink
JOB_MANAGER_PROCESS_MEMORY=1000m
TASK_MANAGER_PROCESS_MEMORY=4000m
Expand All @@ -58,13 +56,18 @@ MYSQL_ROOT_PASSWORD=3cY8Kve4lGey
MYSQL_USER=openmrs
MYSQL_PASSWORD=password


# Debezium
DEBEZIUM_VERSION=1.9
UID=1000
GID=1001

# Minio
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin123
BUCKET=openmrs-data

# Traefik domains
SUPERSET_DOMAIN=c2c-analytics.traefik.me
MINIO_DOMAIN=c2c-analytics-minio.traefik.me

# Kafka Connect
CONNECT_MYSQL_HOSTNAME=mysql
CONNECT_MYSQL_SERVER_ID=5001
2 changes: 1 addition & 1 deletion docker/docker-compose-data-pipelines-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ services:
- CONNECT_MYSQL_USERNAME=${CONNECT_MYSQL_USERNAME:-root}
- CONNECT_MYSQL_PASSWORD=${CONNECT_MYSQL_PASSWORD:-${MYSQL_ROOT_PASSWORD}}
- CONNECT_MYSQL_PORT=${CONNECT_MYSQL_PORT:-${CONNECT_MYSQL_PORT}}
- CONNECT_MYSQL_SERVER_ID=2
- CONNECT_MYSQL_SERVER_ID=${CONNECT_MYSQL_SERVER_ID:-184054}
- CONNECT_MYSQL_SERVER_NAME=openmrs
- CONNECT_MYSQL_INCLUDE_LIST=openmrs
- CONNECT_TABLE_EXCLUDE_LIST=openmrs.audit_log
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose-data-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ services:
- CONNECT_MYSQL_USERNAME=${CONNECT_MYSQL_USERNAME:-root}
- CONNECT_MYSQL_PASSWORD=${CONNECT_MYSQL_PASSWORD:-${MYSQL_ROOT_PASSWORD}}
- CONNECT_MYSQL_PORT=${CONNECT_MYSQL_PORT:-${CONNECT_MYSQL_PORT}}
- CONNECT_MYSQL_SERVER_ID=2
- CONNECT_MYSQL_SERVER_ID=${CONNECT_MYSQL_SERVER_ID:-184054}
- CONNECT_MYSQL_SERVER_NAME=openmrs
- CONNECT_MYSQL_INCLUDE_LIST=openmrs
- CONNECT_TABLE_EXCLUDE_LIST=openmrs.audit_log
Expand Down

0 comments on commit 9667af6

Please sign in to comment.