chore: sync current workspace changes
Desktop CI Build / Build macOS ARM64 DMG (push) Has been cancelled
Desktop CI Build / Build Windows x64 (push) Has been cancelled

This commit is contained in:
boos
2026-07-14 03:21:10 +08:00
parent 1512fa23ce
commit 557914fea8
745 changed files with 124917 additions and 11222 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
# Build stage
FROM rust:1.85-slim-bookworm AS builder
FROM rust:1.88-slim-bookworm AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y pkg-config libssl-dev
COPY Cargo.toml Cargo.lock ./
@@ -10,7 +10,7 @@ RUN cargo build --release
# Runtime stage
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y bubblewrap ca-certificates util-linux && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/target/release/boosapi /app/
COPY --from=builder /app/migrations /app/migrations
+70
View File
@@ -0,0 +1,70 @@
services:
postgres:
image: postgres:17
profiles: ["postgres"]
environment:
POSTGRES_DB: boosapi
POSTGRES_USER: boosapi
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}
volumes:
- boosapi-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U boosapi -d boosapi"]
interval: 5s
timeout: 3s
retries: 20
mysql:
image: mysql:8.0
profiles: ["mysql"]
environment:
MYSQL_DATABASE: boosapi
MYSQL_USER: boosapi
MYSQL_PASSWORD: ${MYSQL_PASSWORD:?set MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?set MYSQL_ROOT_PASSWORD}
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- "--log-bin-trust-function-creators=1"
volumes:
- boosapi-mysql:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p$$MYSQL_ROOT_PASSWORD"]
interval: 5s
timeout: 3s
retries: 30
mariadb:
image: mariadb:10.6
profiles: ["mariadb"]
environment:
MARIADB_DATABASE: boosapi
MARIADB_USER: boosapi
MARIADB_PASSWORD: ${MARIADB_PASSWORD:?set MARIADB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:?set MARIADB_ROOT_PASSWORD}
command: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
volumes:
- boosapi-mariadb:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "healthcheck.sh --connect --innodb_initialized"]
interval: 5s
timeout: 3s
retries: 30
redis:
image: redis:7-alpine
profiles: ["redis"]
command: ["redis-server", "--appendonly", "yes"]
volumes:
- boosapi-redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 20
volumes:
boosapi-postgres:
boosapi-mysql:
boosapi-mariadb:
boosapi-redis: