|
|
@ -1,24 +1,24 @@ |
|
|
|
version: '3.3' |
|
|
|
version: '3.3' |
|
|
|
|
|
|
|
|
|
|
|
services: |
|
|
|
services: |
|
|
|
xcdb: |
|
|
|
root_db: |
|
|
|
image: mysql:5.7 |
|
|
|
image: mysql:5.7 |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- db_data:/var/lib/mysql |
|
|
|
- db_data:/var/lib/mysql |
|
|
|
restart: always |
|
|
|
restart: always |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
MYSQL_ROOT_PASSWORD: password |
|
|
|
MYSQL_ROOT_PASSWORD: password |
|
|
|
MYSQL_DATABASE: xcdb |
|
|
|
MYSQL_DATABASE: root_db |
|
|
|
MYSQL_USER: xc |
|
|
|
MYSQL_USER: noco |
|
|
|
MYSQL_PASSWORD: password |
|
|
|
MYSQL_PASSWORD: password |
|
|
|
healthcheck: |
|
|
|
healthcheck: |
|
|
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] |
|
|
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] |
|
|
|
timeout: 20s |
|
|
|
timeout: 20s |
|
|
|
retries: 10 |
|
|
|
retries: 10 |
|
|
|
|
|
|
|
|
|
|
|
xc: |
|
|
|
nocodb: |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
xcdb: |
|
|
|
root_db: |
|
|
|
condition: service_healthy |
|
|
|
condition: service_healthy |
|
|
|
image: nocodb/nocodb:latest |
|
|
|
image: nocodb/nocodb:latest |
|
|
|
ports: |
|
|
|
ports: |
|
|
@ -28,6 +28,6 @@ services: |
|
|
|
- "8083:8083" |
|
|
|
- "8083:8083" |
|
|
|
restart: always |
|
|
|
restart: always |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
NC_DB: "mysql2://xcdb:3306?u=xc&p=password&d=xcdb" |
|
|
|
NC_DB: "mysql2://root_db:3306?u=noco&p=password&d=root_db" |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
db_data: {} |
|
|
|
db_data: {} |