You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
version: '2.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
root_db:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: password
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_DB: root_db
|
|
|
|
healthcheck:
|
|
|
|
test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"
|
|
|
|
interval: 10s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 10
|
|
|
|
nocodb:
|
|
|
|
depends_on:
|
|
|
|
root_db:
|
|
|
|
condition: service_healthy
|
|
|
|
image: nocodb/nocodb:latest
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db"
|
|
|
|
volumes:
|
|
|
|
db_data: {}
|