deploy: POST /api/wallets + full swagger

This commit is contained in:
ZOMBIIIIIII
2026-05-03 20:01:58 +03:00
parent 59a7d1d9ca
commit 295c3a9d6d
27 changed files with 1994 additions and 430 deletions

View File

@@ -1,51 +0,0 @@
services:
postgres:
image: postgres:16-alpine
container_name: cryptowallet-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-cryptowallet_v2}
volumes:
- pgdata:/var/lib/postgresql/data
# Наружу НЕ экспозим — только docker network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-cryptowallet_v2}"]
interval: 5s
timeout: 5s
retries: 10
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
api:
build:
context: .
dockerfile: Dockerfile
image: cryptowallet-api:latest
container_name: cryptowallet-api
restart: unless-stopped
ports:
- "3001:3001"
env_file:
- .env
environment:
# Override внутри docker network
DB_HOST: postgres
API_PORT: "3001"
NODE_ENV: production
depends_on:
postgres:
condition: service_healthy
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"
volumes:
pgdata:
driver: local