"Fossies" - the Fresh Open Source Software Archive

Member "nocodb-0.100.2/docker-compose/pg/docker-compose.yml" (2 Dec 2022, 719 Bytes) of package /linux/misc/nocodb-0.100.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "docker-compose.yml": 0.98.3_vs_0.98.4.

    1 version: '2.1'
    2 services: 
    3   nocodb: 
    4     depends_on: 
    5       root_db: 
    6         condition: service_healthy
    7     environment: 
    8       NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db"
    9     image: "nocodb/nocodb:latest"
   10     ports: 
   11       - "8080:8080"
   12     restart: always
   13     volumes: 
   14       - "nc_data:/usr/app/data"
   15   root_db: 
   16     environment: 
   17       POSTGRES_DB: root_db
   18       POSTGRES_PASSWORD: password
   19       POSTGRES_USER: postgres
   20     healthcheck: 
   21       interval: 10s
   22       retries: 10
   23       test: "pg_isready -U \"$$POSTGRES_USER\" -d \"$$POSTGRES_DB\""
   24       timeout: 2s
   25     image: postgres
   26     restart: always
   27     volumes: 
   28       - "db_data:/var/lib/postgresql/data"
   29 volumes: 
   30   db_data: {}
   31   nc_data: {}