services: nocodb: image: nocodb/nocodb:latest container_name: nocodb restart: unless-stopped ports: - "${HTTP_PORT}:8080" depends_on: nocodb_db: condition: service_healthy environment: TZ: ${TZ} NC_DB: pg://nocodb_db:5432?u=${POSTGRES_USER}&p=${POSTGRES_PASSWORD}&d=${POSTGRES_DB} NC_AUTH_JWT_SECRET: ${JWT_SECRET} volumes: - /path/to/nocodb/nc_data:/usr/app/data networks: - nocodb-net nocodb_db: image: postgres:16-alpine container_name: nocodb_postgres restart: unless-stopped environment: TZ: ${TZ} POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - /path/to/nocodb/db_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 10s timeout: 5s retries: 10 start_period: 20s networks: - nocodb-net networks: nocodb-net: external: true