- Updated DATABASE_SETUP.md to include instructions for starting Adminer alongside PostgreSQL. - Enhanced Docker Compose configuration to add Adminer service for database management. - Provided connection details and usage instructions for Adminer in the documentation. - Updated commands for restarting services and viewing logs to include Adminer.
35 lines
776 B
YAML
35 lines
776 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_DB: peakskills
|
|
POSTGRES_USER: peakskills_user
|
|
POSTGRES_PASSWORD: peakskills_password
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U peakskills_user -d peakskills"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
# Adminer - Interface web pour PostgreSQL
|
|
adminer:
|
|
image: adminer:4.8.1
|
|
restart: always
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: postgres
|
|
ADMINER_DESIGN: pepa-linha-dark
|
|
depends_on:
|
|
- postgres
|
|
|
|
volumes:
|
|
postgres_data:
|