Compare commits
No commits in common. "ef2622f8ed2c2751ed40475b67cc29f4c581c104" and "08a260a8985f3b1494254612f5ee5cdfbdf5f1ad" have entirely different histories.
ef2622f8ed
...
08a260a898
10
.env.example
10
.env.example
@ -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
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
.env
|
|
||||||
@ -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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user