Files
nuchat/docker-compose.yml
Fergus Molloy a54648d11b
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
remove separate ui service, serve ui with backend
2025-07-18 01:55:34 +01:00

34 lines
715 B
YAML

services:
server:
build: ./
ports:
- "7000:7000"
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:7000/healthcheck"]
interval: 2s
retries: 3
timeout: 5s
db:
image: postgres:17-alpine
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_DB: nuchat
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d nuchat"]
interval: 2s
retries: 3
timeout: 5s
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data: