feat: Docker Compose — app, PostgreSQL 17, опциональный Caddy

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-17 09:41:03 +03:00
parent 8dae5d37fc
commit a4541cf266
7 changed files with 200 additions and 16 deletions
+22
View File
@@ -0,0 +1,22 @@
# Локальная разработка: только PostgreSQL, приложение на хосте (npm run dev)
services:
postgres:
image: postgres:17-alpine
container_name: shop-postgres-dev
ports:
- '5432:5432'
environment:
POSTGRES_USER: shop
POSTGRES_PASSWORD: shop
POSTGRES_DB: shop
volumes:
- shop_pg_dev:/var/lib/postgresql/data
- ./postgres/init:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U shop -d shop']
interval: 3s
timeout: 3s
retries: 5
volumes:
shop_pg_dev: