forked from kobotoolbox/kpi
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include docker compose to handle kpi db services. Pip install jwt pac…
…kage within kpi web docker container. Comment out mongo and postgres db wait docker scripts
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
version: '2.2' | ||
|
||
services: | ||
kpi_db: | ||
image: postgis/postgis:9.6-3.0 | ||
environment: | ||
- POSTGRES_PASSWORD=kpi | ||
- POSTGRES_USER=kpi | ||
- POSTGRES_DB=kpi | ||
volumes: | ||
# One level above the code to prevent having to move or delete | ||
# it everytime we rebuild. | ||
- /var/lib/postgresql/data | ||
onadata_db: | ||
image: postgis/postgis:9.6-3.0 | ||
environment: | ||
- POSTGRES_PASSWORD=onadata | ||
- POSTGRES_USER=onadata | ||
- POSTGRES_DB=onadata | ||
volumes: | ||
# One level above the code to prevent having to move or delete | ||
# it everytime we rebuild. | ||
- /var/lib/postgresql/data | ||
web: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
image: kpi:latest | ||
ports: | ||
- "8000:8000" | ||
depends_on: | ||
- kpi_db | ||
- onadata_db | ||
environment: | ||
- DATABASE_URL=postgres://db:5432/kpi | ||
volumes: | ||
- .:/srv/src/kpi |
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