File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 11#
22# This file is only used by the CI/CD pipeline to deploy images to the environment's VM.
33#
4- # For any local dev work, see docker-compose.yml and *overrides.yml.
4+ # For any local dev work, see docker-compose.yml and *overrides.yml.
55#
66
77# ###############################################################################
@@ -142,6 +142,8 @@ services:
142142 depends_on :
143143 - osm-rails
144144 - osm-cgimap
145+ volumes :
146+ - osm-cgimap-socket:/run/cgimap
145147 labels :
146148 - traefik.enable=true
147149 - traefik.http.routers.osm-web.rule=Host(`${WS_OSM_HOST}`)
@@ -161,6 +163,7 @@ services:
161163 image : ${WS_DOCKER_REGISTRY}/workspaces-osm-cgimap:${WS_DOCKER_TAG}
162164 restart : always
163165 environment :
166+ CGIMAP_SOCKET : /run/cgimap/cgimap.sock
164167 CGIMAP_INSTANCES : ${WS_CGIMAP_INSTANCES}
165168 CGIMAP_HOST : ${WS_OSM_DB_HOST}
166169 CGIMAP_USERNAME : ${WS_OSM_DB_USER}
@@ -170,6 +173,8 @@ services:
170173 CGIMAP_MAX_PAYLOAD : ${WS_OSM_MAX_UPLOAD_BYTES}
171174 CGIMAP_MAP_NODES : ${WS_OSM_MAX_EXPORT_NODES}
172175 CGIMAP_MAP_AREA : ${WS_OSM_MAX_EXPORT_AREA}
176+ volumes :
177+ - osm-cgimap-socket:/run/cgimap
173178
174179 tasks-backend :
175180 image : ${WS_DOCKER_REGISTRY}/workspaces-tasks-backend:${WS_DOCKER_TAG}
@@ -214,3 +219,4 @@ services:
214219volumes :
215220 osm-rails-tmp :
216221 osm-rails-storage :
222+ osm-cgimap-socket :
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ services:
120120 volumes :
121121 - ./osm-web/nginx.conf:/etc/nginx/conf.d/default.conf:ro
122122 - ./osm-rails/public:/usr/share/nginx/html:ro
123+ - osm-cgimap-socket:/run/cgimap
123124 labels :
124125 - traefik.enable=true
125126 - traefik.http.routers.osm-web.rule=Host(`${WS_OSM_HOST}`)
@@ -141,6 +142,7 @@ services:
141142 context : osm-cgimap
142143 dockerfile : docker/ubuntu/Dockerfile2404
143144 environment :
145+ CGIMAP_SOCKET : /run/cgimap/cgimap.sock
144146 CGIMAP_INSTANCES : ${WS_CGIMAP_INSTANCES}
145147 CGIMAP_HOST : ${WS_OSM_DB_HOST}
146148 CGIMAP_USERNAME : ${WS_OSM_DB_USER}
@@ -150,6 +152,8 @@ services:
150152 CGIMAP_MAX_PAYLOAD : ${WS_OSM_MAX_UPLOAD_BYTES}
151153 CGIMAP_MAP_NODES : ${WS_OSM_MAX_EXPORT_NODES}
152154 CGIMAP_MAP_AREA : ${WS_OSM_MAX_EXPORT_AREA}
155+ volumes :
156+ - osm-cgimap-socket:/run/cgimap
153157
154158 # tasks-frontend:
155159 # build:
@@ -195,3 +199,4 @@ volumes:
195199 osm-rails-tmp :
196200 osm-rails-storage :
197201 osm-rails-db-data :
202+ osm-cgimap-socket :
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ server {
103103 # Handle requests for the endpoints implemented in CGImap:
104104 #
105105 location ~ \.map$ {
106- fastcgi_pass osm-cgimap: 8000 ;
106+ fastcgi_pass unix:/run/cgimap/cgimap.sock ;
107107
108108 # Large dataset uploads may take a long time to process
109109 fastcgi_read_timeout 3h ;
You can’t perform that action at this time.
0 commit comments