Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg:adding postgress and cht-couch2pg to superset #3

Merged
merged 1 commit into from
Mar 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions docker-compose-non-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,39 @@ services:
user: "root"
volumes: *superset-volumes

postgres:
image: medicmobile/cht-postgres:release-postgres13-rc.1
environment:

POSTGRES_DB: ${POSTGRES_DB_NAME:-cht}
POSTGRES_USER: ${POSTGRES_USER_NAME:-postgres_root}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres_root_password}

COUCH2PG_USER: ${COUCH2PG_USER:-cht_couch2pg}
COUCH2PG_USER_PASSWORD: ${COUCH2PG_USER_PASSWORD:-cht_couch2pg_password}
DB_OWNER_GROUP: ${DB_OWNER_GROUP:-cht_analytics}
volumes:
- cht-postgres-data:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT:-5432}:5432

cht-couch2pg:
image: medicmobile/cht-couch2pg:main-node-10
environment:
COUCHDB_URL: ${COUCHDB_URL:-https://medic:[email protected]/medic}

POSTGRES_USER_NAME: ${COUCH2PG_USER:-cht_couch2pg}
POSTGRES_PASSWORD: ${COUCH2PG_USER_PASSWORD:-cht_couch2pg_password}
POSTGRES_SERVER_NAME: ${POSTGRES_SERVER_NAME:-postgres}
POSTGRES_DB_NAME: ${POSTGRES_DB_NAME:-cht}

COUCH2PG_CHANGES_LIMIT: ${COUCH2PG_CHANGES_LIMIT:-100}
COUCH2PG_SLEEP_MINS: ${COUCH2PG_SLEEP_MINS:-60}
COUCH2PG_DOC_LIMIT: ${COUCH2PG_DOC_LIMIT:-1000}
COUCH2PG_RETRY_COUNT: ${COUCH2PG_RETRY_COUNT:-5}
depends_on:
- postgres

nginx-superset:
image: nginx:latest
container_name: nginx-superset
Expand All @@ -100,3 +133,5 @@ volumes:
external: false
redis:
external: false
cht-postgres-data:
external: false