All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
34 lines
715 B
YAML
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:
|