Добавлен Hybernate и реализован прототип БД

This commit is contained in:
RoyceDa
2026-02-02 03:20:12 +02:00
parent fb41458b18
commit d1be8e7014
8 changed files with 452 additions and 7 deletions

View File

@@ -2,15 +2,27 @@ version: '3.8'
services:
db:
image: postgres:latest
image: postgres:16-alpine
environment:
POSTGRES_DB: your_database
POSTGRES_USER: your_user
POSTGRES_PASSWORD: your_password
POSTGRES_DB: rosetta_db
POSTGRES_USER: rosetta_user
POSTGRES_PASSWORD: rosetta_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rosetta_user"]
interval: 10s
timeout: 5s
retries: 5
adminer:
image: adminer
ports:
- "8080:8080"
- "8080:8080"
depends_on:
- db
volumes:
postgres_data: