add first commit
This commit is contained in:
8
README.md
Normal file
8
README.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# 🖥️ MiniAppLogs
|
||||||
|
|
||||||
|
Run with terminal:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# ============================================================
|
||||||
|
# MiniAppLogs – SQLite (default, no database server needed)
|
||||||
|
# ============================================================
|
||||||
|
# Usage:
|
||||||
|
# 1. Copy .env.example to .env
|
||||||
|
# 2. Set APP_URL to your server IP/domain
|
||||||
|
# 3. Run: docker compose up -d
|
||||||
|
# ============================================================
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: trannguyenhan/miniapplogs:latest
|
||||||
|
container_name: miniapplogs_app
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "${APP_PORT:-8080}:80"
|
||||||
|
environment:
|
||||||
|
APP_URL: ${APP_URL:-http://localhost:8080}
|
||||||
|
APP_LOCALE: ${APP_LOCALE:-en}
|
||||||
|
volumes:
|
||||||
|
# Persistent: SQLite database, sessions, file cache
|
||||||
|
- app_storage:/var/www/html/storage
|
||||||
|
|
||||||
|
# ── To read logs from the HOST machine via SSH ──────────────────────────
|
||||||
|
# In the app, add a server with:
|
||||||
|
# IP/Hostname: host.docker.internal
|
||||||
|
# Port: 22
|
||||||
|
# User/Password or Private Key: your SSH credentials
|
||||||
|
# No volume mounts needed – SSH handles it securely.
|
||||||
|
|
||||||
|
extra_hosts:
|
||||||
|
# Allows container to SSH back to the host machine
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
app_storage:
|
||||||
Reference in New Issue
Block a user