-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update web container and TM config (#315)
* Update config for TM to use a db * Update web container * Update config to set up web and tm * Update env vars for web and tm * Restart containers * Update port for planet api * Update tiler containers * Update config * Update compose config * Delete tasking manager web * Update website version * Update config * Generate doorkeeper_signing_key and set in config * Remove upload to s3 the logs from restore db * Add env var to change org name * Disable cgimap * Update the private key creation * Comment cgimap cli * Update private key creation * Update website version * Update api file service * Update api db
- Loading branch information
Showing
21 changed files
with
277 additions
and
233 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
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,16 +1,33 @@ | ||
version: '3' | ||
services: | ||
###################################################### | ||
### Tasking Manager section | ||
###################################################### | ||
tasking-manager-api: | ||
tmdb: | ||
image: mdillon/postgis:11 | ||
# ports: | ||
# - '5432:5432' | ||
volumes: | ||
- ../data/tasking-manager-db:/db | ||
env_file: | ||
- ../envs/.env.tasking-manager-db | ||
restart: always | ||
migration: | ||
image: osmseed-tasking-manager-api:v1 | ||
build: | ||
context: ../images/tasking-manager-api | ||
dockerfile: Dockerfile | ||
restart: on-failure | ||
command: > | ||
sh -c "sleep 10s && python3 manage.py db upgrade" | ||
env_file: | ||
- ../envs/.env.tasking-manager | ||
- ../envs/.env.tasking-manager-db | ||
tmapi: | ||
build: | ||
context: ../images/tasking-manager-api | ||
dockerfile: Dockerfile | ||
image: osmseed-tasking-manager-api:v1 | ||
ports: | ||
- '5000:5000' | ||
volumes: | ||
- ../data/tasking-manager-api-db:/db | ||
- '5000:5000' | ||
env_file: | ||
- ../envs/.env.tasking-manager | ||
- ../envs/.env.tasking-manager | ||
- ../envs/.env.tasking-manager-db | ||
restart: always |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
POSTGRES_DB=tm | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=1234 | ||
POSTGRES_PORT=5432 |
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 |
---|---|---|
|
@@ -20,16 +20,27 @@ [email protected] | |
MAILER_PASSWORD=abc... | ||
[email protected] | ||
MAILER_PORT=25 | ||
OSM_memcache_servers="" | ||
|
||
# Nominatim settings | ||
NOMINATIM_URL=nominatim-api | ||
|
||
# Make sure that the first time this (OPENSTREETMAP_id_key) value is empty. | ||
# Once you start you server and create your OAuth 1, fill the value with the Consumer Key. | ||
OPENSTREETMAP_id_key="" | ||
OSM_memcache_servers="" | ||
# Once you start you server and create your OAuth 2. | ||
### Create OAuth 2 applications | ||
### Client ID=OPENSTREETMAP_id_key | ||
OPENSTREETMAP_id_key="xyz..." | ||
|
||
### OpenStreetMap Web Site | ||
# Client ID=OAUTH_CLIENT_ID | ||
# Client Secret=OAUTH_KEY | ||
OAUTH_CLIENT_ID="abc..." | ||
OAUTH_KEY="efg..." | ||
|
||
# NEW_RELIC settings | ||
# TODO: Needs to be implemented the New Relic functions in order to make running in the web container | ||
NEW_RELIC_LICENSE_KEY="..." | ||
NEW_RELIC_APP_NAME="..." | ||
|
||
### Set organization name, by default : OpenStreetMap | ||
ORGANIZATION_NAME=OSMSeed |
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,25 +1,18 @@ | ||
FROM postgres:11 | ||
RUN rm /etc/apt/sources.list.d/pgdg.list | ||
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list | ||
RUN sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list | ||
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list | ||
RUN apt-get update && apt-get -y install apt-transport-https | ||
RUN echo "deb [ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] https://apt-archive.postgresql.org/pub/repos/apt/ stretch-pgdg main 11" >/etc/apt/sources.list.d/pgdg.list | ||
FROM postgres:14 | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
postgresql-server-dev-11 \ | ||
postgresql-server-dev-14 \ | ||
make \ | ||
build-essential \ | ||
postgresql-11-postgis-2.5 \ | ||
postgresql-14-postgis-3 \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
ADD functions/functions.sql /usr/local/share/osm-db-functions.sql | ||
ADD docker_postgres.sh /docker-entrypoint-initdb.d/ | ||
RUN mkdir -p db | ||
RUN mkdir -p lib | ||
ADD functions/ db/functions/ | ||
ADD lib/quad_tile/ lib/quad_tile/ | ||
|
||
RUN make -C db/functions/ | ||
RUN chown -R postgres lib/ | ||
RUN chown -R postgres db/ | ||
RUN chown -R postgres db/ |
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 |
---|---|---|
|
@@ -10,6 +10,6 @@ while true ; do | |
if [ "$sum" != "$new_sum" ]; then | ||
./seed-by-diffs.sh | ||
else | ||
sleep 1 | ||
sleep 30s | ||
fi | ||
done |
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
Oops, something went wrong.