Files
nuchat/docker-compose.yml
Fergus Molloy f9047644fe
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
serve vue spa from axum
2025-07-18 01:49:28 +01:00

47 lines
983 B
YAML

services:
ui:
build: ./ui
ports:
- "3000:3000"
depends_on:
backend:
condition: service_started
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://0.0.0.0:3000"]
interval: 2s
retries: 3
timeout: 5s
backend:
build: ./backend
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: