Docker-Compose部署Bytebase

docker-compose部署Bytebase

编写docker-compose.yaml配置文件

version: "3.7"

services:
  bytebase:
    image: bytebase/bytebase:1.9.1
    init: true
    container_name: bytebase
    restart: always
    ports:
      - 5678:5678
    # # Uncomment the following lines to persist data
    volumes:
      - ./data:/var/opt/bytebase
    command: ["--data", "/var/opt/bytebase", "--port", "5678"]

  employee-prod:
    image: bytebase/sample-database:mysql-employee-small
    ports:
      - 3306:3306

  employee-test:
    image: bytebase/sample-database:mysql-employee-small
    ports:
      - 3307:3306
0%