多维表格
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.

33 lines
685 B

version: '2.1'
services:
root_db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
- nc_data:/usr/app/data
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: root_db
MYSQL_USER: noco
MYSQL_PASSWORD: password
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
nocodb:
depends_on:
root_db:
condition: service_healthy
image: nocodb/nocodb:latest
ports:
- "8080:8080"
restart: always
environment:
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db"
volumes:
db_data: {}
nc_data: {}