-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
100 lines (92 loc) · 2.51 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
100 lines (92 loc) · 2.51 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: "3"
services:
nginx:
build:
context: ./nginx
ports:
- 80:80
- 443:443
volumes:
- ./client/public:/usr/share/nginx/html
depends_on:
- client
- server
- mapproxy
- geoserver
- nominatim
client:
build:
context: ./client
ports:
- 8082:8082
server:
build:
context: ./server
environment:
GEOSERVER_USERNAME: ${GEOSERVER_USERNAME}
GEOSERVER_PASSWORD: ${GEOSERVER_PASSWORD}
MAPPROXY_USERNAME: ${MAPPROXY_USERNAME}
MAPPROXY_PASSWORD: ${MAPPROXY_PASSWORD}
NOMINATIM_USERNAME: ${NOMINATIM_USERNAME}
NOMINATIM_PASSWORD: ${NOMINATIM_PASSWORD}
ports:
- 8085:8085
depends_on:
- database
database:
image: kartoza/postgis:12.0
restart: always
environment:
POSTGRES_DBNAME: ${POSTGRES_DBNAME}
POSTGRES_USER: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_MULTIPLE_EXTENSIONS: postgis,pgrouting
ALLOW_IP_RANGE: 0.0.0.0/0
volumes:
- postgres_data:/var/lib/postgresql
# Uncomment this to allow initial sql scripts to be run on initial db setup
# - ./database/setup-db.sql:/docker-entrypoint-initdb.d/setup-db.sql
# - nominatim_config:/app/src/build/module
ports:
- 5435:5432
geoserver:
image: oscarfonts/geoserver
ports:
- 8080:8080
volumes:
- ./geoserver/data_dir:/var/local/geoserver
- ./geoserver/exts_dir:/var/local/geoserver-exts/
depends_on:
- database
mapproxy:
build:
context: ./mapproxy
environment:
MAPPROXY_USERNAME: ${MAPPROXY_USERNAME}
MAPPROXY_PASSWORD: ${MAPPROXY_PASSWORD}
ports:
- 8083:8083
volumes:
- ./mapproxy:/mapproxy
nominatim:
build:
context: ./nominatim
args:
NOMINATIM_USERNAME: ${NOMINATIM_USERNAME} # Used For api basic auth
NOMINATIM_PASSWORD: ${NOMINATIM_PASSWORD} # Used For api basic auth
TYPE: "run"
environment:
POSTGRES_DBNAME: ${POSTGRES_DBNAME}
POSTGRES_HOST: "host.docker.internal"
POSTGRES_PORT: 5435
POSTGRES_USERNAME: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- 7070:8100
volumes:
- ./nominatim:/nominatim
# - nominatim_config:/app/src/build/module
command: /bin/sh -c "/app/startapache.sh"
volumes:
postgres_data:
# nominatim_config: