Skip to content

Commit b27a792

Browse files
author
Ruben L. Mendoza
authored
Merge pull request #210 from developmentseed/update/docs_envs
Update docker-compose config - readme and environment-variable files
2 parents 44720cd + 946d874 commit b27a792

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+626
-775
lines changed

.dockerignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ db-backup-restore/
2121
nominatim-data/
2222
postgresdata/
2323
taginfo-data/
24+
data/
2425
.env
2526
.env-nominatim
2627
.env-nominatim.example
@@ -31,10 +32,14 @@ taginfo-data/
3132
.env-tasking-manager.example
3233
.env-tiler
3334
.env-tiler.example
34-
.env.example
35+
.env.example\
36+
.env.*
37+
.env.*.example
3538
# ignore all *.class files in all folders, including build root
3639
**/*.json
3740

3841
# ignore all markdown files (md) beside all README*.md
3942
*.md
4043
!README*.md
44+
45+
envs/

.env-nominatim.example

Lines changed: 0 additions & 11 deletions
This file was deleted.

.env-taginfo.example

Lines changed: 0 additions & 13 deletions
This file was deleted.

.env-tiler.example

Lines changed: 0 additions & 63 deletions
This file was deleted.

.env.example

Lines changed: 0 additions & 61 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
.env-overpass
66
.env-taginfo
77
.DS_Store
8+
.env.*
9+
!.env.*.example
810

911
usa.values.yaml
1012
prod.values.yaml
@@ -21,7 +23,6 @@ tiler-imposm-data/
2123
tiler-server-data/
2224
nominatim-pgdata/
2325
taginfo-data/
24-
data/
2526
*.osm
2627
*.pbf
2728
*.bz2
@@ -31,4 +32,6 @@ tiler-imposm/cachedir/
3132
tiler-imposm/diff/
3233
tiler-imposm/imposm3_expire_dir
3334
tiler-server/imposm/
34-
overpass-api-db/
35+
overpass-api-db/
36+
data/*/
37+
!data/README.md

INSTALL.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,38 @@ You will need `docker` and `docker-compose` installed on your system.
1313

1414
### Run locally
1515

16-
Copy `.env.example` to `.env` and edit as appropriate.
16+
Osm-seed contains different containers, you may need to comment out some of them at docker-compose.yml according to your use case.
17+
18+
Copy the required environment files form `envs/` folder, e.g `envs/.env.db.example` to `.env.db` and edit as appropriate.
1719

1820
Run `docker-compose build` to build all Dockerfiles defined in `docker-compose.yml`.
1921

20-
Run `source .env && docker-compose up` to run all containers defined in `docker-compose`
22+
Run `docker-compose up` to run all containers defined in `docker-compose.yml`
23+
24+
Once `docker-compose` is running, you should be able to access a local instance of services:
2125

22-
Once `docker-compose` is running, you should be able to access a local instance of the OpenStreetMap website on `http://localhost:80`
26+
- OpenStreetMap website on `http://localhost:80`
27+
- Api DB on port 5432
28+
- Tiler DB on port 5433
29+
- Vector tile server on `http://localhost:9090`
30+
- Nominatim DB on port 5434
31+
- Nominatim API on `http://localhost:7070`
32+
- Overpass API on `http://localhost:8081`
33+
- Tasking Manager API on `http://localhost:5050`
34+
- Taginfo API website on `http://localhost:4567`
35+
- OpenStreetMap website on `http://localhost:80`
2336

2437
NOTE:
2538

2639
- The map-tiles on the instance are being served from the main osm.org website currently.
2740
- Make sure the port 5432 and 80 are not busy.
41+
- Data outputs from osm-seed is going to be store i the `data/` folder.
2842

29-
### Building and Running individual containers
3043

31-
Sometime you may require building and running a container by itself, so to do that and to put the container on the same network as other containers it maybe dependent on, first you should create a network.
32-
33-
e.g
44+
### Building and Running individual containers
3445

35-
```
36-
docker network create osm_network
46+
Sometime you may require building and running a container by itself, so to do that and to put the container on the same network as other containers, take a looks on the folder [`images`](images/) of each contianer.
3747

38-
```
48+
### Run in Kubernetes Cluster
3949

40-
And then follow the README file in folders specific for each container definition, to configure, edit and test individual containers.
50+
For running in kubernetes use helm templates, https://devseed.com/osm-seed-chart/

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,24 @@ This project provides docker container definitions for various aspects of the Op
1616

1717
### What's included now:
1818

19-
- `web` A container that runs The OpenStreetMap Rails Port.
20-
- `db` A container that runs OSM Api database.
21-
- `populate-apidb` A container that runs `osmium` to import data into the api-db.
22-
- `planet-dump` A container that exports a planet replication in pbf format.
23-
- `replication-job` A container that exports data from the api-db every minute, hour or day.
24-
- `db-backup-restore` A container that runs database backup.
25-
- A `Helm` [chart](https://www.helm.sh/), simplifying the process of deploying the entire system onto a Kubernetes cluster.
26-
27-
### Diagram
19+
- [`web`](images/web) A container that runs The OpenStreetMap Rails Port - https://wiki.openstreetmap.org/wiki/Main_Page.
20+
- [`db`](images/db) A container that runs OSM Api database.
21+
- [`populate-apidb`](images/populate-apidb) A container that runs `osmium` to import data into the api-db.
22+
- [`planet-dump`](images/planet-dump) A container that exports a planet replication in pbf format.
23+
- [`full-history`](images/full-history) A container that exports a full planet replication in pbf format.
24+
- [`replication-job`](images/replication-job) A container that exports data from the api-db every minute, hour or day.
25+
- [`db-backup-restore`](images/db-backup-restore) A container that runs database backup.
26+
27+
- [`tiler-db`](images/tiler-db) A container that runs tiler database.
28+
- [`tiler-imposm`](images/tiler-imposm) A container that runs updates from minute replication job.
29+
- [`tiler-server`](images/tiler-server) A container that runs vector tile server base on tegola - https://github.com/go-spatial/tegola
30+
31+
- [`nominatim`](images/nominatim) A container that runs geocoder using data from `planet-dump` and `replication-job`
32+
- [`overpass-api`](images/overpass-api) A container that runs read-only API for filtering map data - https://wiki.openstreetmap.org/wiki/Overpass_API
33+
- [`taginfo`](images/taginfo) A container that runs a service for finding and aggregating information about osm-seed tags - https://wiki.openstreetmap.org/wiki/Taginfo
34+
- [`tasking-manager-api`](images/tasking-manager-api) A container that runs Task manager rest api - https://github.com/pgmorgan/task-manager-api
2835

29-
![](https://user-images.githubusercontent.com/1152236/49454074-6c6b2280-f7b2-11e8-944d-e47136d1dcf9.png)
36+
- A `Helm` [chart](https://www.helm.sh/), simplifying the process of deploying the entire system onto a Kubernetes cluster.
3037

3138
### Usage
3239
For more details on installation, see [INSTALL.md](INSTALL.md).

data/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Data folder to store osm-seed outputs
2+

0 commit comments

Comments
 (0)