Watch
1
0
Fork
You've already forked Seyyed_arc
0
forked from hesabix/arc
Seyyed_arc/hesabixAPI/docker-compose.yml

43 lines
911 B
YAML
Executable file

version: "3.9"
services:
db:
image: postgres:16
container_name: hesabix-postgres
environment:
POSTGRES_PASSWORD: root
POSTGRES_DB: hesabix
POSTGRES_USER: hesabix
ports:
- "127.0.0.1:5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hesabix -d hesabix"]
interval: 10s
timeout: 5s
retries: 10
api:
build: .
container_name: hesabix-api
environment:
APP_NAME: Hesabix API
ENVIRONMENT: development
DEBUG: "true"
API_V1_PREFIX: /api/v1
APP_VERSION: 0.1.0
DB_USER: hesabix
DB_PASSWORD: root
DB_HOST: db
DB_PORT: 5432
DB_NAME: hesabix
SQLALCHEMY_ECHO: "false"
LOG_LEVEL: INFO
ports:
- "127.0.0.1:8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
db_data: