-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
50 lines (50 loc) · 1.4 KB
/
compose.yaml
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
47
48
49
50
services:
server:
# -v ./.env:/app/.env -it
build: ./backend
volumes:
- type: bind
source: ./.env
target: /app/.env
ports:
- "8080:8080"
# sudo docker rm -f local_pg && sudo docker run --name local_pg -e POSTGRES_PASSWORD=test -e POSTGRES_DB=hackeroni -p 5432:5432 -d postgres
postgres:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=test
- POSTGRES_DB=hackeroni
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- db-vol:/var/lib/postgresql/data
#docker run -t -i -p 5000:5000 -v "${PWD}:/data" osrm/osrm-backend osrm-routed --algorithm mld /data/berlin-latest.osrm
osrm:
build: ./osrm
#image: osrm/osrm-backend
volumes:
- type: bind
source: ./osrm
target: /data
ports:
- "5000:5000"
command: osrm-routed --algorithm mld /data/italy-latest.osrm
# nominatim docker run -it \
#-e PBF_PATH=https://download.geofabrik.de/europe/monaco-latest.osm.pbf \
#-e REPLICATION_URL=https://download.geofabrik.de/europe/monaco-updates/ \
#-p 8080:8080 \
#--name nominatim \
#mediagis/nominatim:4.4
nominatim:
image: mediagis/nominatim:4.4
ports:
- "8000:8080"
#volumes:
#- type: bind
# source: ./osrm
# target: /data
environment:
- PBF_URL=https://download.geofabrik.de/europe/italy-latest.osm.pbf
volumes:
db-vol: