Websoft9 / docker-library

Docker Compose examples of selfhosted FOSS based on official image, just run it.
https://www.websoft9.com
Other
31 stars 14 forks source link

create new compose for [bytebase] #566

Closed chendelin1982 closed 4 months ago

chendelin1982 commented 5 months ago

What type of your feature request?

docs: https://www.bytebase.com/docs/get-started/self-host/#docker

chendelin1982 commented 5 months ago

初始化设置通过cmd: https://www.bytebase.com/docs/reference/command-line/

qiaofeng1227 commented 5 months ago
services:
  bytebase:
    image: $W9_REPO:$W9_VERSION
    container_name: $W9_ID
    #command: ["--backup-bucket", "your-bucket-name"]
    env_file:
      - .env
    restart: unless-stopped
chendelin1982 commented 4 months ago
services:
  bytebase:
    image: $W9_REPO:$W9_VERSION
    container_name: $W9_ID
    #command: ["--backup-bucket", "your-bucket-name"]
    env_file:
      - .env
    restart: unless-stopped

provide refer official docs

qiaofeng1227 commented 4 months ago

https://www.bytebase.com/docs/get-started/self-host/

mkdir ~/volumes
colima start --mount ~/volumes:w
docker run --init \
  --name bytebase \
  --restart always \
  --publish 80:8080 \
  --volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase:2.13.2 \
  --data /var/opt/bytebase \
  --external-url https://bytebase.example.com \
  --port 8080

将docker命令转换成docker-compose.yml

version: '3.8'

services:
  bytebase:
    image: bytebase/bytebase:2.13.2
    container_name: bytebase
    restart: always
    ports:
      - "80:8080"
    volumes:
      - "~/.bytebase/data:/var/opt/bytebase"
    command:
      - "--data=/var/opt/bytebase"
      - "--external-url=https://bytebase.example.com"
      - "--port=8080"