updated nocodb

This commit is contained in:
2024-08-01 20:08:19 -07:00
parent 36bd97fec0
commit 0e0730f7af
6 changed files with 74 additions and 44 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ generate_readme() {
readme_content+="## Overview\n"
readme_content+="Docker Hub: \n"
readme_content+="Project: \n"
readme_content+="Composer Example: \n"
readme_content+="Docker Compose Example: \n"
readme_content+="Proxy Port: \n"
# Description
+13
View File
@@ -0,0 +1,13 @@
# nocodb
Last Updated: Thu August 01, 2024 18:40:57 PDT
## Overview
Docker Hub: https://hub.docker.com/r/nocodb/nocodb
Project: https://nocodb.com/
Docker Compose Example: https://github.com/nocodb/nocodb/blob/master/docker-compose/mysql/docker-compose.yml
Proxy Port: 8080
## Description
This project is setup to use sql lite. Although it can use mysql with some env vars.
+9 -43
View File
@@ -1,44 +1,10 @@
---
version: "2.1"
version: '3.8'
# https://github.com/nocodb/nocodb/blob/master/docker-compose/mysql/docker-compose.yml
services:
nocodb:
depends_on:
root_db:
condition: service_healthy
environment:
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
image: "nocodb/nocodb:latest"
ports:
- "8000:8080"
restart: always
volumes:
- "nc_data:/usr/app/data"
root_db:
environment:
MYSQL_DATABASE: root_db
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: noco
healthcheck:
retries: 10
test:
- CMD
- mysqladmin
- ping
- "-h"
- localhost
timeout: 20s
image: "mysql:8.0.32"
restart: always
volumes:
- "db_data:/var/lib/mysql"
# below line shows how to change charset and collation
# uncomment it if necessary
# command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
db_data: {}
nc_data: {}
services:
nc:
image: ${NOCODB_IMAGE:-nocodb/nocodb:latest}
restart: unless-stopped
# environment:
# - NC_DB=${NCDB_NC_DB:-mysql2://root_db:3306?u=noco&p=password&d=root_db}
volumes:
- "${VOL_PATH:-./data}/nc_data:/usr/app/data"
+39
View File
@@ -0,0 +1,39 @@
services:
nocodb:
depends_on:
root_db:
condition: service_healthy
environment:
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
image: "nocodb/nocodb:latest"
ports:
- "8000:8080"
restart: always
volumes:
- "nc_data:/usr/app/data"
root_db:
environment:
MYSQL_DATABASE: root_db
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: noco
healthcheck:
retries: 10
test:
- CMD
- mysqladmin
- ping
- "-h"
- localhost
timeout: 20s
image: "mysql:8.0.32"
restart: always
volumes:
- "db_data:/var/lib/mysql"
# below line shows how to change charset and collation
# uncomment it if necessary
# command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
db_data: {}
nc_data: {}
+7
View File
@@ -0,0 +1,7 @@
version: '3.4'
services:
nc:
extends:
file: ${COOKBOOK}/nocodb/docker-compose.yml
service: nc
+5
View File
@@ -0,0 +1,5 @@
COOKBOOK=/git/docker-compose-cookbooks #HELP: cookbooks
# nocodb
#NOCODB_mysql2=//root_db:3306?u=noco&p=password&d=root_db
NOCODB_IMAGE=nocodb/nocodb:latest