Se ha cambiado la base de datos a Postgres SQL, además se han realizado algunos cambios de lógica.
18 lines
426 B
YAML
18 lines
426 B
YAML
services:
|
|
postgres:
|
|
image: postgres:15
|
|
container_name: adicciones_postgres
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: adicciones
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- ./pg_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5 |