nocodb docker compose 配置
2022/2/5 23:12:55
本文主要是介绍nocodb docker compose 配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
## 示例
version: "3.9" services: db: image: mysql # restart: always container_name: nocodb-db # ports: # - 3307:3306 # command: # #这行代码解决无法访问的问题 # --default-authentication-plugin=mysql_native_password volumes: - nocodb-db:/var/lib/mysql # - d:/code/docker_project/mysqlData/data/:/var/lib/mysql/ # - d:/code/docker_project/mysqlData/conf/:/etc/mysql/conf.d/ # - d:/code/docker_project/mysqlData/init/:/docker-entrypoint-initdb.d/ # 数据库还原目录 可将需要还原的sql文件放在这里 # - d:/code/docker_project/mysqlData/mysql/source:/docker-entrypoint-initdb.d environment: - MYSQL_RANDOM_ROOT_PASSWORD=yes - MYSQL_DATABASE=nocodb - MYSQL_USER=nocodb - MYSQL_PASSWORD=password - TZ=Asia/Shanghai healthcheck: test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] timeout: 20s retries: 10 nocodb: depends_on: db: condition: service_healthy image: nocodb/nocodb:latest container_name: nocodb restart: always volumes: - d:/code/docker_project/nocodb/data:/usr/app/data/ ports: - 8080:8080 environment: - NC_DB=mysql2://db:3306?u=nocodb&p=password&d=nocodb volumes: nocodb-db:
参考文章
[NocoDB a Open Source Airtable Alternative - General Discussion - MIT App Inventor Community](https://community.appinventor.mit.edu/t/nocodb-a-open-source-airtable-alternative/34119/10)
主要参考代码块
version: '2' services: db: image: mysql:5.7 container_name: nocodb-db volumes: - nocodb-db:/var/lib/mysql environment: - MYSQL_RANDOM_ROOT_PASSWORD=yes - MYSQL_DATABASE=nocodb - MYSQL_USER=nocodb - MYSQL_PASSWORD=password healthcheck: test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] timeout: 20s retries: 10 nocodb: depends_on: db: condition: service_healthy image: nocodb/nocodb:latest container_name: nocodb environment: - NC_DB=mysql2://db:3306?u=nocodb&p=password&d=nocodb - NC_PUBLIC_URL=https://noco.example.com volumes: nocodb-db:
其他参考
[docker_compose_nocodb/docker-compose.yml at main · olegrand1976/docker_compose_nocodb · GitHub](https://github.com/olegrand1976/docker_compose_nocodb/blob/main/docker-compose.yml)
version: '3.6' services: root_db: image: mysql:8.0.27 ports: - "3306:3306" - "33060:33060" volumes: - db_data:/var/lib/mysql restart: always environment: - MYSQL_ROOT_PASSWORD:"password" - MYSQL_DATABASE:"root_db" - MYSQL_USER:"noco" - MYSQL_PASSWORD:"password" nocodb: # depends_on: # - root_db image: nocodb/nocodb:0.84.1 ports: - "8080:8080" volumes: - db_noco:/usr/app/data/ restart: always environment: - NC_DB:"mysql2://root_db:3306?u=noco&p=password&d=root_db" adminer: image: adminer:4.8.1 restart: always ports: - 8081:8080 volumes: db_data: {} db_noco: {}
这篇关于nocodb docker compose 配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-26alpine构建的镜像无法使用docker exec -it 进入内部怎么办?-icode9专业技术文章分享
- 2024-12-24Docker环境部署资料详解
- 2024-12-24Docker环境部署教程:新手入门详解
- 2024-12-24Docker环境部署项目实战教程
- 2024-12-24Docker环境部署学习:初学者指南
- 2024-12-24Docker环境部署入门:新手必读指南
- 2024-12-20Docker部署资料:新手入门教程
- 2024-12-19Docker部署实战:新手入门教程
- 2024-12-19Docker部署教程:新手入门详解
- 2024-12-09云原生周刊:在Docker上部署大语言模型