Refactor API

This commit is contained in:
Lev 2026-04-16 00:07:48 +03:00
parent 9c813cdfbe
commit 8aa4828239
21 changed files with 731 additions and 363 deletions

25
docker-compose.yml Normal file
View file

@ -0,0 +1,25 @@
services:
#api:
# Todo
#web:
# Todo
db:
image: postgres:latest
container_name: spectralvpn-db
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: ["CMD", "pg_isready", "-U", "${DB_USER}", "-d", "${DB_NAME}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- db-data:/var/lib/postgresql
ports:
- 5432:5432
volumes:
db-data: