feat: initialisation du projet
- Ajout des dépendances dans `composer.json` (Doctrine, Twig, Security, etc.). - Configuration de l’environnement de développement via `.env`. - Mise en place d’un modèle de base pour les assets avec `app.js` et `app.css`. - Création du fichier de configuration `asset_mapper.yaml`. - Ajout de la configuration Docker via `compose.yaml` (PostgreSQL, Mailer). - Ajout des fichiers de base pour les templates Twig (`base.html.twig`). - Mise à jour des ignores dans le fichier `.gitignore`. - Fichiers supplémentaires pour le cache, les tests et les bootstrap Symfony.
This commit is contained in:
30
compose.yaml
Normal file
30
compose.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
services:
|
||||
database:
|
||||
image: postgres:${POSTGRES_VERSION:-16}-alpine
|
||||
ports:
|
||||
- "5432"
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-app}
|
||||
# You should definitely change the password in production
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-app}
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
volumes:
|
||||
- database_data:/var/lib/postgresql/data:rw
|
||||
|
||||
mailer:
|
||||
image: axllent/mailpit
|
||||
ports:
|
||||
- "1025"
|
||||
- "8025"
|
||||
environment:
|
||||
MP_SMTP_AUTH_ACCEPT_ANY: 1
|
||||
MP_SMTP_AUTH_ALLOW_INSECURE: 1
|
||||
|
||||
volumes:
|
||||
database_data:
|
||||
Reference in New Issue
Block a user