> For the complete documentation index, see [llms.txt](https://maps4fs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maps4fs.gitbook.io/docs/advanced-topics/legacy/legacy_deployment.md).

# Legacy Deployment

⚠️ **This deployment method is deprecated and no longer supported.**

## What is Legacy Deployment?

The legacy version was a monolith application where both backend and frontend (using Streamlit) were bundled together in a single Docker container. This caused confusion for users and made the application harder to maintain.

## Legacy Docker Command

```bash
docker run -d -p 8501:8501 -p 8000:8000 --name maps4fs -v /c/maps4fs:/usr/src/app/mfsrootdir iwatkot/maps4fs:2.2.7
```

### Command Breakdown

* `-d` - Run container in detached mode (background)
* `-p 8501:8501` - Streamlit frontend port
* `-p 8000:8000` - Backend API port
* `--name maps4fs` - Container name
* `-v /c/maps4fs:/usr/src/app/mfsrootdir` - Volume mount for data directory

### Volume Mount Details

**Important:** Replace `/c/maps4fs` with your own local directory path where you want to store:

* Generated maps
* Cache data
* Configuration files
* Custom DEM and OSM files

**Examples for different operating systems:**

* **Windows:** `-v C:\your\maps\folder:/usr/src/app/mfsrootdir`
* **Linux/macOS:** `-v /home/user/maps4fs:/usr/src/app/mfsrootdir`

**What gets stored in the mounted folder:**

* `maps/` - Your generated maps
* `cache/` - Downloaded elevation and OSM data
* Custom files you want to use for map generation

**Latest available legacy tag:** `2.2.7`

Docker Hub: <https://hub.docker.com/r/iwatkot/maps4fs>

## Important Notice

* ❌ **No updates, new features, or support**
* ❌ **Deprecated architecture**
* ❌ **May have unresolved issues**
* ✅ **Still functional if you prefer it**

## Recommended Alternative

For the best experience with latest features and support, please use the [**Local Deployment**](/docs/setup-and-installation/local_deployment.md) method instead.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://maps4fs.gitbook.io/docs/advanced-topics/legacy/legacy_deployment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
