Files
habr-article-API/compose.yml
n0one a910bffcc9
All checks were successful
Build and Push Docker Image / build-and-push (release) Successful in 2m7s
Update compose.yml
2025-09-15 15:05:35 +03:00

37 lines
858 B
YAML

services:
habr-article-api:
image: git.frik.su/n0one/habr-article-api:latest
container_name: habr-article-api
ports:
- 4002:8000
environment:
DB_NAME: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
HOST_NAME: postgres
PG_PORT: 5432
LOGGING_LEVEL: "INFO"
ENABLE_API_DOCS: "True"
UVI_LOGGING_LEVEL: "info"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:latest
container_name: habr-article-api-postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- :5432
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped