Add Docker-Compose setup with configurable local port via .env.

Document container startup and local port configuration in README, including a .env example for quick setup.

Made-with: Cursor
This commit is contained in:
2026-04-02 18:44:07 +02:00
parent 1c9fc93314
commit e6fbe84d58
3 changed files with 41 additions and 0 deletions

View File

@@ -14,6 +14,38 @@ pip install -r requirements.txt
python app.py
```
## Docker Compose
Run the app with Docker Compose and configure the local host port via `.env`.
1. Create a `.env` file in the project root (or copy `.env.example`):
```bash
# macOS / Linux
cp .env.example .env
# Windows (PowerShell)
Copy-Item .env.example .env
```
2. Set the local host port in `.env`:
```dotenv
LOCAL_PORT=5000
```
3. Build and start the container:
```bash
docker compose up --build -d
```
4. Open the app in your browser:
```text
http://localhost:<LOCAL_PORT>
```
Visit [https://date.elpatron.me](https://date.elpatron.me) for the live demo.
## License