Files
templates/blueprints/nocodb/docker-compose.yml
Jainil Prajapati 1f458fdf53 chore(deps): update dependencies and improve NocoDB configuration (#359)
* chore(deps): update dependencies and improve NocoDB configuration

- Update vite-plugin-static-copy from 2.3.0 to 2.3.2
- Update Vite from 6.3.5 to 6.3.6
- Change NocoDB Docker image to use latest tag instead of specific version
- Update PostgreSQL from 17 to 16.6 for better stability
- Improve NocoDB configuration with proper environment variables
- Add proper volume mounts for data persistence
- Update healthcheck configuration for PostgreSQL service
- Update NocoDB port from 8000 to 8080 in configuration

* fix(docker-compose): improve healthcheck and formatting for nocodb service
2025-10-04 22:18:20 -06:00

38 lines
882 B
YAML

services:
nocodb:
image: nocodb/nocodb:latest
restart: always
depends_on:
root_db:
condition: service_healthy
environment:
# Reuses DB env from template.toml / .env
NC_DB: "pg://root_db:5432?u=${POSTGRES_USER}&p=${POSTGRES_PASSWORD}&d=${POSTGRES_DB}"
volumes:
- nc_data:/usr/app/data
root_db:
image: postgres:16.6
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
# More reliable healthcheck:
healthcheck:
test:
[
"CMD-SHELL",
'pg_isready -h 127.0.0.1 -U "$POSTGRES_USER" -d "$POSTGRES_DB"',
]
interval: 10s
timeout: 5s
start_period: 20s
retries: 10
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: {}
nc_data: {}