New stack in the fleet (rocky-docker-lxc/nocodb) — mirrored here with paths/secrets sanitized per the existing convention.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
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}
|
|
NODE_EXTRA_CA_CERTS: /usr/local/share/ca-certificates/caddy.crt
|
|
volumes:
|
|
- /path/to/nocodb/nc_data:/usr/app/data
|
|
- /path/to/caddy-root.crt:/usr/local/share/ca-certificates/caddy.crt:ro
|
|
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
|