-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docker-compose.yml for production
- Loading branch information
Showing
8 changed files
with
43 additions
and
28 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 |
---|---|---|
|
@@ -25,3 +25,5 @@ source/supervisord.log | |
source/supervisord.pid | ||
.vscode/settings.json | ||
.env | ||
|
||
docker.env |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# These DB connection parameters are set up in docker/postgres/docker-entrypoint-initdb.d/project.sh | ||
DB_HOST=localdb | ||
DB_USER=idetect | ||
DB_PASS=democracy | ||
DB_PASSWORD=democracy | ||
DB_NAME=idetect | ||
DB_PORT=5432 | ||
|
||
# Python packages in source/python are made available to python-based containers here | ||
PYTHONPATH=/home/idetect/python | ||
|
||
MAPZEN_KEY=thisisnotakey | ||
MAPZEN_KEY=thisisnotakey |
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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
#!/bin/bash | ||
|
||
echo "REFRESH MATERIALIZED VIEW idetect_fact_api_locations" | psql -h localdb -U idetect | ||
echo "REFRESH MATERIALIZED VIEW idetect_fact_api" | psql -h localdb -U idetect | ||
echo "REFRESH MATERIALIZED VIEW idetect_map_week_mview" | psql -h localdb -U idetect | ||
# Environment variables required by psql | ||
export PGUSER=${DB_USER} | ||
export PGPASSWORD=${DB_PASSWORD} | ||
export PGDATABASE=${DB_NAME} | ||
export PGHOST=${DB_HOST} | ||
export PGPORT=${DB_PORT} | ||
|
||
set -x | ||
psql -c "REFRESH MATERIALIZED VIEW idetect_map_mview;" | ||
psql -c "REFRESH MATERIALIZED VIEW idetect_map_week_mview;" | ||
psql -c "REFRESH MATERIALIZED VIEW idetect_fact_api_locations" | ||
psql -c "REFRESH MATERIALIZED VIEW idetect_fact_api" | ||
set +x |