This commit is contained in:
2024-03-27 20:00:59 +03:00
parent f92171ff84
commit 717596f55c
12 changed files with 226 additions and 133 deletions

10
dev.yml
View File

@ -3,12 +3,15 @@ services:
build:
context: backend
ports:
- "5000"
- "8000"
env_file:
- path: ./env/backend/dev.env
required: true
volumes:
- ./backend/app:/code/app:z
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: frontend
@ -36,3 +39,8 @@ services:
env_file:
- path: ./env/postgres.env
required: true
healthcheck:
test: ["CMD-SHELL", "pg_isready -d db --user user"]
interval: 2s
timeout: 2s
retries: 5