Add optional apt/PyPI mirrors and HTTP_PORT

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-05 09:12:41 +03:30
parent a3a99411c6
commit 20c2cc018c
4 changed files with 47 additions and 6 deletions

View File

@@ -23,13 +23,20 @@ The application is fully containerized using Docker, meaning it can be deployed
```bash
cd path/to/product-slip
```
2. Start the application stack using Docker Compose:
2. (Optional) Copy `.env.example` to `.env` and adjust settings:
```bash
cp .env.example .env
```
- `HTTP_PORT` — host port for the app (default `80`)
- `APT_MIRROR` — Debian apt mirror host used during image build
- `PIP_INDEX_URL` / `PIP_TRUSTED_HOST` — PyPI mirror used by pip during image build
3. Start the application stack using Docker Compose:
```bash
docker compose up -d --build
```
3. The server is now running! You can access the application from any device on the same local network:
- If you are on the same machine: Open your browser and go to `http://localhost`
- If you are on a different machine on the same network: Find the host computer's local IP address (e.g., `192.168.1.15`) and go to `http://192.168.1.15`
4. The server is now running! You can access the application from any device on the same local network:
- If you are on the same machine: Open your browser and go to `http://localhost` (or `http://localhost:$HTTP_PORT` if you changed the port)
- If you are on a different machine on the same network: Find the host computer's local IP address (e.g., `192.168.1.15`) and go to `http://192.168.1.15` (add `:$HTTP_PORT` if not using port 80)
### Stopping the Server
To safely stop the application without losing data: