-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
46 lines (46 loc) · 1.1 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
45
46
version: '2'
services:
web:
# uncomment this, if you like to have local build.
# build: ./osm-tiles
image: osmtw/osm-tiles:latest
ports:
- "8080:80"
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
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
- REGION=asia/taiwan
- DATADIR=/osm
- LOOP=600
depends_on:
- postgis
postgis:
image: osmtw/postgis:9.5-2.2
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=pa55w0rd
volumes:
- osmdb:/var/lib/postgresql/data
volumes:
osmdb:
osm: