netgescon-day0/docs/000-FILAMENT/08-DOCKER-SETUP.md

28 lines
651 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Docker setup (distribuzione)
## Prerequisiti
- Docker + Docker Compose
- Accesso ai volumi legacy (read-only)
## 1) Configurazione
1. Copia `.env.docker.example``.env`
2. Compila le variabili principali:
- `APP_URL`
- `DB_DATABASE`, `DB_USERNAME`, `DB_PASSWORD`, `DB_ROOT_PASSWORD`
- `LEGACY_ARCHIVES_PATH`
## 2) Avvio
```
docker compose -f docker/docker-compose.prod.yml up -d
```
## 3) Aggiornamenti
```
bash scripts/update-docker.sh
```
## 4) Note
- Gli archivi legacy non sono inclusi nelle immagini Docker.
- Vengono montati in read-only da `LEGACY_ARCHIVES_PATH`.
- La migrazione DB viene eseguita allavvio (entrypoint).