mirror of https://github.com/nocodb/nocodb
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.
32 lines
719 B
32 lines
719 B
3 years ago
|
version: '2.1'
|
||
2 years ago
|
services:
|
||
|
nocodb:
|
||
|
depends_on:
|
||
|
root_db:
|
||
|
condition: service_healthy
|
||
|
environment:
|
||
|
NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db"
|
||
|
image: "nocodb/nocodb:latest"
|
||
|
ports:
|
||
|
- "8080:8080"
|
||
4 years ago
|
restart: always
|
||
2 years ago
|
volumes:
|
||
|
- "nc_data:/usr/app/data"
|
||
|
root_db:
|
||
|
environment:
|
||
|
POSTGRES_DB: root_db
|
||
4 years ago
|
POSTGRES_PASSWORD: password
|
||
|
POSTGRES_USER: postgres
|
||
2 years ago
|
healthcheck:
|
||
4 years ago
|
interval: 10s
|
||
|
retries: 10
|
||
2 years ago
|
test: "pg_isready -U \"$$POSTGRES_USER\" -d \"$$POSTGRES_DB\""
|
||
|
timeout: 2s
|
||
|
image: postgres
|
||
4 years ago
|
restart: always
|
||
2 years ago
|
volumes:
|
||
|
- "db_data:/var/lib/postgresql/data"
|
||
|
volumes:
|
||
3 years ago
|
db_data: {}
|
||
3 years ago
|
nc_data: {}
|