You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,45 @@ You can also run DeployStack on your own infrastructure for maximum control:
100
100
npm run dev:backend
101
101
```
102
102
103
+
#### Deploying with Docker
104
+
105
+
Alternatively, you can deploy the pre-built Docker images for the frontend and backend services.
106
+
107
+
1.**Pull the latest images from Docker Hub:**
108
+
109
+
```bash
110
+
docker pull deploystack/frontend:latest
111
+
docker pull deploystack/backend:latest
112
+
```
113
+
114
+
2. **Run the Backend Service:**
115
+
116
+
The backend requires a persistent volume for its data (like database configuration and SQLite files). The following command maps a local directory (`./services/backend/persistent_data`) to the container's data directory. It's recommended to run this command from the root of the cloned DeployStack project directory.
The frontend requires environment variables to connect to the backend and for other configurations.
128
+
129
+
```bash
130
+
docker run -d \
131
+
-p 8080:80 \ # Exposes frontend on host port 8080, container runs on 80
132
+
-e VITE_DEPLOYSTACK_APP_URL="http://localhost:3000" \ # URL of your backend service
133
+
-e VITE_APP_TITLE="Your DeployStack Title" \
134
+
# Add any other environment variables as needed
135
+
deploystack/frontend:latest
136
+
```
137
+
138
+
**Note:**
139
+
- Ensure the `VITE_DEPLOYSTACK_APP_URL` points to where your backend service is accessible. If running both containers on the same Docker host, `http://localhost:3000` (or the host's IP/hostname if `localhost` doesn't resolve correctly from within the frontend container's network to the backend's exposed port) should work.
140
+
- The `$(pwd)`in the backend command assumes you are in the root of the `deploystack` project directory. Adjust the path to `services/backend/persistent_data`if running from elsewhere, or use an absolute path or a Docker named volume.
141
+
103
142
## Project Structure
104
143
105
144
This repository uses a monorepo structure optimized for MCP server deployment:
0 commit comments