Skip to content

Commit

Permalink
pg:adding postgress and cht-couch2pg to superset
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcliff committed Mar 16, 2022
1 parent 5035665 commit 20a0a6d
Showing 1 changed file with 35 additions and 0 deletions.
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

0 comments on commit 20a0a6d

Please sign in to comment.