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.
33 lines
677 B
33 lines
677 B
4 years ago
|
version: '3.3'
|
||
|
|
||
|
services:
|
||
|
xcdb:
|
||
|
image: mysql:5.7
|
||
|
volumes:
|
||
|
- db_data:/var/lib/mysql
|
||
|
restart: always
|
||
|
environment:
|
||
|
MYSQL_ROOT_PASSWORD: password
|
||
|
MYSQL_DATABASE: xcdb
|
||
|
MYSQL_USER: xc
|
||
|
MYSQL_PASSWORD: password
|
||
|
healthcheck:
|
||
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
||
|
timeout: 20s
|
||
|
retries: 10
|
||
|
|
||
|
xc:
|
||
|
depends_on:
|
||
|
xcdb:
|
||
|
condition: service_healthy
|
||
|
image: nocodb/nocodb:latest
|
||
|
ports:
|
||
|
- "8080:8080"
|
||
|
- "8081:8081"
|
||
|
- "8082:8082"
|
||
|
- "8083:8083"
|
||
|
restart: always
|
||
|
environment:
|
||
|
NC_DB: "mysql2://xcdb:3306?u=xc&p=password&d=xcdb"
|
||
|
volumes:
|
||
|
db_data: {}
|