diff --git a/map-frontend/docker-compose.yaml b/map-frontend/docker-compose.yaml
new file mode 100644
index 0000000..81781a7
--- /dev/null
+++ b/map-frontend/docker-compose.yaml
@@ -0,0 +1,16 @@
+services:
+ map-frontend:
+ image: nginx:alpine
+ container_name: map-frontend
+ restart: unless-stopped
+ ports:
+ - "8087:80"
+ volumes:
+ - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
+ - ./html:/usr/share/nginx/html:ro
+ networks:
+ - npm-network
+
+networks:
+ npm-network:
+ external: true
diff --git a/map-frontend/html/index.html b/map-frontend/html/index.html
new file mode 100644
index 0000000..d4ee210
--- /dev/null
+++ b/map-frontend/html/index.html
@@ -0,0 +1,112 @@
+
+
+
+
+
+ Maps
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/map-frontend/nginx.conf b/map-frontend/nginx.conf
new file mode 100644
index 0000000..3a010a2
--- /dev/null
+++ b/map-frontend/nginx.conf
@@ -0,0 +1,18 @@
+server {
+ listen 80;
+
+ # Proxy tile requests to the internal pmtiles server
+ location /tiles/ {
+ proxy_pass http://pmtiles:8080/;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_cache_bypass $http_upgrade;
+ }
+
+ # Serve the static frontend
+ location / {
+ root /usr/share/nginx/html;
+ index index.html;
+ try_files $uri $uri/ =404;
+ }
+}
diff --git a/pmtiles/docker-compose.yaml b/pmtiles/docker-compose.yaml
index a91b8f8..ea11646 100644
--- a/pmtiles/docker-compose.yaml
+++ b/pmtiles/docker-compose.yaml
@@ -3,9 +3,7 @@ services:
image: protomaps/go-pmtiles:latest
container_name: pmtiles
restart: unless-stopped
- command: serve /data --port=8080 --cors=* --public-url=https://maps.kolpacksoftware.com/
- ports:
- - "8086:8080"
+ command: serve /data --port=8080 --cors=* --public-url=https://maps.kolpacksoftware.com/tiles/
volumes:
- /mnt/nas_library/pmtiles/data:/data
networks: