forked from mbasa/pgrServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (32 loc) · 877 Bytes
/
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
version: "2.4"
networks:
pgrserver:
volumes:
pgr-postgis-data:
services:
pgrServer:
image: mbasa/pgrserver:latest
container_name: pgrserver
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASS=postgres
- POSTGRES_DB=pgr
- POSTGRES_HOST=pgr_postgis
- POSTGRES_PORT=5432
#network_mode: host # use this instead of networks for a separate Postgres instance
networks:
- pgrserver
ports:
- 8080:8080
pgr_postgis:
image: kartoza/postgis:13.0
volumes:
- pgr-postgis-data:/var/lib/postgresql
environment:
- POSTGRES_DB=pgr
- POSTGRES_USER=postgres
- POSTGRES_PASS=postgres
# Add extensions you need to be enabled by default in the DB. Default are the three specified below
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,pgrouting
networks:
- pgrserver