postgres version

This commit is contained in:
Your Name
2025-10-22 21:57:07 +03:00
commit 1aff196155
31 changed files with 10962 additions and 0 deletions

26
docker-compose.farm.yaml Normal file
View File

@@ -0,0 +1,26 @@
services:
# Application service
farm:
build:
context: ./server/
dockerfile: Dockerfile
depends_on:
postgres:
condition: service_healthy
# networks:
# - security_net
restart: "always"
ports:
- "${FARM_PORT}:8000"
postgres:
image: postgres:18
environment:
POSTGRES_USER: farm
POSTGRES_PASSWORD: asdasdasd
POSTGRES_DB: farmdb
healthcheck:
test: pg_isready -U farm -d farmdb
interval: 10s
timeout: 3s
retries: 3