-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcompose.yml
128 lines (110 loc) · 3.39 KB
/
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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This file is only for local development purposes. The actual deployment
# configuration lives in a separate repository.
services:
database:
build:
context: .
dockerfile: Dockerfile.database
ports:
- "5403:5432"
environment:
- POSTGRES_PASSWORD=insecure
- POSTGRES_DB=postgres
command: ["postgres", "-c", "log_statement=all"]
volumes:
- "${POSTGRES_DATA_DIR:-/var/lib/postgresql/data}:/var/lib/postgresql/data"
proxy:
build:
context: jwtproxy
dockerfile: Dockerfile.dev
ports:
- 9191:8000
volumes:
- ./jwtproxy/src:/app/jwtproxy
environment:
PROXY_URL: http://map
JWKS_PATH: /app/jwtproxy/test_jwk.json
LOG_LEVEL: DEBUG
#JWKS_URL: "https://iam.amsterdam.nl/auth/realms/datapunt-ad-acc/protocol/openid-connect/certs"
# Bare bones 'webserver' to behave as public loadbalancer
publicdummy:
image: python:3.11-slim-bullseye
ports:
- 8000:8000
command: python3 -m http.server 8000
map:
build:
context: .
ports:
- "8383:8080"
environment:
# Used by apache to allow complete access for local dev
LOCAL: "true"
PANORAMA_DB_NAME: panorama
PANORAMA_DB_USER: postgres
PANORAMA_DB_PASSWORD: insecure
PANORAMA_DB_HOST: database
DATASERVICES_DB_NAME: postgres
DATASERVICES_DB_USER: postgres
DATASERVICES_DB_PASSWORD_PATH: insecure
DATASERVICES_DB_HOST: database
MAP_URL: "${MAP_URL:-http://localhost:8383}"
LEGEND_URL: "${LEGEND_URL:-http://localhost:8383}"
volumes:
- .:/srv/mapserver/
privatemap:
build:
context: .
dockerfile: Dockerfile.private
args:
BASE_IMAGE: ${BASE_IMAGE}
ports:
- "8384:8080"
environment:
# Used by apache to allow complete access for local dev
LOCAL: "true"
PANORAMA_DB_NAME: panorama
PANORAMA_DB_USER: postgres
PANORAMA_DB_PASSWORD: insecure
PANORAMA_DB_HOST: database
DATASERVICES_DB_NAME: postgres
DATASERVICES_DB_USER: postgres
DATASERVICES_DB_PASSWORD_PATH: insecure
DATASERVICES_DB_HOST: database
MAP_URL: "${MAP_URL:-http://localhost:8384}"
LEGEND_URL: "${LEGEND_URL:-http://localhost:8384}"
volumes:
- ./tools/:/srv/mapserver/tools/
- ./symbols/:/srv/mapserver/symbols/
- ./fonts/:/srv/mapserver/fonts/
- ./sld/:/srv/mapserver/sld/
- ./connection/:/srv/mapserver/connection/
- ./private:/srv/mapserver/
topomap:
build:
context: .
dockerfile: Dockerfile.topografie
args:
BASE_IMAGE: ${BASE_IMAGE}
ports:
- "8385:8080"
environment:
# Used by apache to allow complete access for local dev
LOCAL: "true"
PANORAMA_DB_NAME: panorama
PANORAMA_DB_USER: postgres
PANORAMA_DB_PASSWORD: insecure
PANORAMA_DB_HOST: database
DATASERVICES_DB_NAME: postgres
DATASERVICES_DB_USER: postgres
DATASERVICES_DB_PASSWORD_PATH: insecure
DATASERVICES_DB_HOST: database
MAP_URL: "${MAP_URL:-http://localhost:8385}"
LEGEND_URL: "${LEGEND_URL:-http://localhost:8385}"
volumes:
- ./tools/:/srv/mapserver/tools/
- ./symbols/:/srv/mapserver/symbols/
- ./fonts/:/srv/mapserver/fonts/
- ./sld/:/srv/mapserver/sld/
- ./connection/:/srv/mapserver/connection/
- ./referentiekaarten/:/srv/mapserver/