Compare commits

..

No commits in common. "ef2622f8ed2c2751ed40475b67cc29f4c581c104" and "08a260a8985f3b1494254612f5ee5cdfbdf5f1ad" have entirely different histories.

3 changed files with 0 additions and 53 deletions

View File

@ -1,10 +0,0 @@
# Configuration de la base de données en développement local
# Configuration PostgreSQL
POSTGRES_USER=admin
POSTGRES_PASSWORD=admin123
POSTGRES_DB=ptitpas_db
# Configuration PgAdmin (accessible sur http://localhost:8080)
PGADMIN_DEFAULT_EMAIL=admin@localhost
PGADMIN_DEFAULT_PASSWORD=admin123

1
.gitignore vendored
View File

@ -1 +0,0 @@
.env

View File

@ -1,42 +0,0 @@
# Docker Compose pour développement local de la base de données uniquement
# Usage: docker compose -f docker-compose.dev.yml up -d
services:
# Base de données PostgreSQL
postgres:
image: postgres:17
container_name: ptitspas-postgres-standalone
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-admin}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-admin123}
POSTGRES_DB: ${POSTGRES_DB:-ptitpas_db}
ports:
- "5432:5432"
volumes:
- ./migrations/01_init.sql:/docker-entrypoint-initdb.d/01_init.sql
- postgres_standalone_data:/var/lib/postgresql/data
networks:
- ptitspas_dev
# Interface d'administration DB
pgadmin:
image: dpage/pgadmin4
container_name: ptitspas-pgadmin-standalone
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@localhost}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin123}
ports:
- "8080:80"
depends_on:
- postgres
networks:
- ptitspas_dev
volumes:
postgres_standalone_data:
networks:
ptitspas_dev:
driver: bridge