Skip to content

Commit 04583e5

Browse files
committed
Update ports and Docker image
1 parent 3699e35 commit 04583e5

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

workshop/content/docs/introduction/docker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ MapServer runs on the Apache web server - see the [Apache page](../advanced/apac
1010

1111
It uses the Apache [mod_fcgid module](https://httpd.apache.org/mod_fcgid/), module that provides FastCGI support.
1212

13-
MapServer runs on port 80 on the Docker container, which is mapped to port 5002 on the local machine, as can be seen in the Docker compose file
13+
MapServer runs on port 80 on the Docker container, which is mapped to port 7000 on the local machine, as can be seen in the Docker compose file
1414
located at `workshop\exercises\docker-compose.yml`:
1515

1616
```yaml
1717
mapserver:
18-
image: camptocamp/mapserver:8.4-gdal3.10
18+
image: geographika/mapserver-workshop:latest
1919
container_name: mapserver
2020
ports:
21-
- 5002:80
21+
- 7000:80
2222
environment:
2323
MAPSERVER_CONFIG_FILE: "/etc/mapserver/mapserver.conf"
2424
volumes:
@@ -30,14 +30,14 @@ located at `workshop\exercises\docker-compose.yml`:
3030
3131
## JavaScript Application
3232
33-
A second container that serves the JavaScript example pages is also run using Docker. This uses node and runs on port 5001 on both the container and the host machine.
33+
A second container that serves the JavaScript example pages is also run using Docker. This uses node and runs on port 7001 on both the container and the host machine.
3434
3535
```yaml
3636
node:
3737
image: node:lts-slim
3838
container_name: node
3939
ports:
40-
- 5001:7001
40+
- 7001:7001
4141
working_dir: /home/node/app
4242
volumes:
4343
- ./app:/home/node/app

workshop/exercises/app/.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_MAPSERVER_BASE_URL=http://localhost:5002/?
2-
VITE_MAPSERVER_OGC_BASE_URL=http://localhost:5002/
1+
VITE_MAPSERVER_BASE_URL=http://localhost:7000/?
2+
VITE_MAPSERVER_OGC_BASE_URL=http://localhost:7000/
33
VITE_MAPFILES_PATH=map=/etc/mapserver/
4-
VITE_APP_URL=http://node:5001/
4+
VITE_APP_URL=http://node:7001/

workshop/exercises/app/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
server: {
1515
host: true, // allow connections from other Docker containers
1616
allowedHosts: ['node', 'geographika.github.io'], // allow access using http://node:7001 from the mapserver container
17-
port: 5001,
17+
port: 7001,
1818
watch: {
1919
// fix for Windows on WSL - https://github.com/vitejs/vite/issues/1153
2020
usePolling: true

workshop/exercises/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929

3030
services:
3131
mapserver:
32-
image: camptocamp/mapserver:8.4-gdal3.10
32+
image: geographika/mapserver-workshop:latest
3333
container_name: mapserver
3434
ports:
35-
- 7000:80
35+
- 7000:8080
3636
environment:
3737
MAPSERVER_CONFIG_FILE: "/etc/mapserver/mapserver.conf"
3838
volumes:

workshop/exercises/mapfiles/mapserver.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ CONFIG
5252
# OGC API
5353
#
5454
OGCAPI_HTML_TEMPLATE_DIRECTORY "/usr/local/share/mapserver/ogcapi/templates/html-bootstrap4/"
55+
MS_MAP_PATTERN "."
5556
END
5657

5758
#

0 commit comments

Comments
 (0)