version: "3.8" services: db: image: postgres:16-alpine container_name: hyb-oa-trialrun-db restart: unless-stopped environment: POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} ports: - "5432:5432" volumes: - ./data/postgres:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 10s timeout: 5s retries: 10 minio: image: minio/minio:RELEASE.2025-01-20T14-49-07Z container_name: hyb-oa-trialrun-minio restart: unless-stopped profiles: ["minio"] environment: MINIO_ROOT_USER: ${MINIO_ROOT_USER} MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} command: ["server", "/data", "--console-address", ":9001"] ports: - "9000:9000" - "9001:9001" volumes: - ./data/minio:/data minio_init: image: minio/mc:RELEASE.2025-08-13T08-35-41Z container_name: hyb-oa-trialrun-minio-init profiles: ["minio"] depends_on: - minio env_file: - ./.env entrypoint: ["sh", "-c"] command: | set -e for i in $$(seq 1 60); do mc alias set local http://minio:9000 "$$MINIO_ROOT_USER" "$$MINIO_ROOT_PASSWORD" && break || true sleep 1 done mc mb --ignore-existing "local/$$S3_BUCKET" server: build: context: ../.. dockerfile: deploy/trialrun/Dockerfile args: BUILD_SHA: ${BUILD_SHA:?set BUILD_SHA to the approved full commit} VITE_BUILD_SHA: ${VITE_BUILD_SHA:?set VITE_BUILD_SHA to the matching short commit} container_name: hyb-oa-trialrun-server restart: unless-stopped depends_on: db: condition: service_healthy env_file: - ./.env environment: NODE_ENV: production BUILD_SHA: ${BUILD_SHA:?set BUILD_SHA to the approved full commit} ports: - "127.0.0.1:3000:3000" volumes: - ./data/storage:${STORAGE_DIR} worker: build: context: ../.. dockerfile: deploy/trialrun/Dockerfile args: BUILD_SHA: ${BUILD_SHA:?set BUILD_SHA to the approved full commit} VITE_BUILD_SHA: ${VITE_BUILD_SHA:?set VITE_BUILD_SHA to the matching short commit} container_name: hyb-oa-trialrun-worker restart: unless-stopped profiles: ["worker"] depends_on: db: condition: service_healthy env_file: - ./.env command: ["npm", "run", "worker"] environment: NODE_ENV: production BUILD_SHA: ${BUILD_SHA:?set BUILD_SHA to the approved full commit} SERVE_CLIENT_DIST: "false" JOBS_ENABLED: "true" volumes: - ./data/storage:${STORAGE_DIR} init: build: context: ../.. dockerfile: deploy/trialrun/Dockerfile args: BUILD_SHA: ${BUILD_SHA:?set BUILD_SHA to the approved full commit} VITE_BUILD_SHA: ${VITE_BUILD_SHA:?set VITE_BUILD_SHA to the matching short commit} container_name: hyb-oa-trialrun-init depends_on: db: condition: service_healthy env_file: - ./.env environment: NODE_ENV: production BUILD_SHA: ${BUILD_SHA:?set BUILD_SHA to the approved full commit} volumes: - ./data/storage:${STORAGE_DIR} entrypoint: ["sh", "-c"] command: > cd /app/server && npm run prisma:migrate:deploy && npm run seed:config && npm run seed:trialrun restart: "no"