Files
shihaam 00d25698c6
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 9s
remove email related code
2026-08-02 14:25:41 +05:00

36 lines
789 B
YAML

services:
backend:
build:
context: .build/dev
hostname: backend
volumes:
- ./:/app
ports:
# host 8000 -> container 5000 (host :5000 is taken by the local macvendor-api)
- 8000:5000
env_file:
- .env
depends_on:
database:
condition: service_healthy
database:
image: postgres:16
hostname: database
environment:
POSTGRES_DB: ${POSTGRES_DATABASE:-sarlink}
POSTGRES_USER: ${POSTGRES_USER:-sarlink}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER:-sarlink}"]
interval: 5s
timeout: 3s
retries: 10
volumes:
pgdata: