-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.07 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '2'
services:
web:
# uncomment this, if you like to have local build.
# build: ./gdtile
image: osmtw/gdtile
ports:
- "10080:10080"
links:
- postgis:pg
environment:
- PG_ENV_POSTGRES_DB=postgres
- PG_ENV_POSTGRES_PASSWORD=pa55w0rd
- PG_ENV_POSTGRES_USER=postgres
- PG_PORT_5432_TCP_ADDR=pg
- PG_PORT_5432_TCP_PORT=5432
depends_on:
- postgis
entrypoint: sh -c "sleep 30 ; /usr/local/bin/entry.sh"
osm2pgsql:
image: osmtw/osm2pgsql:0.88.1
links:
- postgis:pg
volumes:
- osm:/osm:rw
environment:
- PG_ENV_POSTGRES_DB=postgres
- PG_ENV_POSTGRES_PASSWORD=pa55w0rd
- PG_ENV_POSTGRES_USER=postgres
- PG_PORT_5432_TCP_ADDR=pg
- PG_PORT_5432_TCP_PORT=5432
depends_on:
- postgis
postgis:
image: osmtw/postgis
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=pa55w0rd
volumes:
- osmdb:/var/lib/postgresql/data
volumes:
osmdb:
osm: