Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

3.6 KB
Raw Blame
# Disposable CI data only. Use a unique --project-name; never load the root .env.
services:
  gateway:
    image: ${KANEO_CI_IMAGE:-kaneo:ci}
    entrypoint: ["node", "/ci/gateway.mjs"]
    command: []
    volumes:
      - ./gateway.mjs:/ci/gateway.mjs:ro
    ports:
      - "127.0.0.1::15173"
      - "127.0.0.1::15174"
      - "127.0.0.1::15175"
      - "127.0.0.1::19040"
    healthcheck:
      disable: true
  postgres:
    image: postgres:18
    environment:
      POSTGRES_DB: kaneo_ci_test
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: ci-only-password
    volumes:
      - ./init-databases.sql:/docker-entrypoint-initdb.d/ci.sql:ro
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres -d kaneo_ci_test"]
      interval: 2s
      timeout: 5s
      retries: 30
  redis:
    image: redis:7-alpine
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 2s
      timeout: 5s
      retries: 30
  minio:
    image: bitnamilegacy/minio@sha256:8935e75fa5d11295c17171e4aa49efe390a1193cd7f12e4d21b92af9ffef09d7
    entrypoint: /opt/bitnami/minio/bin/minio
    command: server /tmp/minio --address :9000
    environment:
      MINIO_ROOT_USER: local-test-access
      MINIO_ROOT_PASSWORD: local-test-secret-only
      MINIO_BROWSER: "off"
      MINIO_UPDATE: "off"
    healthcheck:
      test: ["CMD", "curl", "--fail", "--silent", "http://127.0.0.1:9000/minio/health/ready"]
      interval: 2s
      timeout: 5s
      retries: 30
  app:
    image: ${KANEO_CI_IMAGE:-kaneo:ci}
    # Exercise the bundled image under OpenShift-style filesystem restrictions.
    user: "1001230000:1001230000"
    read_only: true
    cap_drop: [ALL]
    security_opt: ["no-new-privileges:true"]
    tmpfs:
      - /var/lib/kaneo:rw,mode=0770,gid=1001230000
    environment: &app-env
      NODE_ENV: production
      DATABASE_URL: postgresql://postgres:ci-only-password@postgres:5432/kaneo_ci_test
      AUTH_SECRET: ci-only-secret-with-at-least-32-characters
      KANEO_CLIENT_URL: ${KANEO_CI_APP_ORIGIN:-http://127.0.0.1:55173}
      DISABLE_REGISTRATION: "false"
      DISABLE_GUEST_ACCESS: "true"
      DISABLE_PASSWORD_REGISTRATION: "false"
      REDIS_URL: ${KANEO_CI_REDIS_URL:-}
      S3_ENDPOINT: http://minio:9000
      S3_BUCKET: kaneo-ci-test
      S3_ACCESS_KEY_ID: local-test-access
      S3_SECRET_ACCESS_KEY: local-test-secret-only
      S3_REGION: us-east-1
      S3_FORCE_PATH_STYLE: "true"
    depends_on:
      postgres: {condition: service_healthy}
      minio: {condition: service_healthy}
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:5173/api/health"]
      interval: 2s
      timeout: 5s
      retries: 60
  second:
    image: ${KANEO_CI_IMAGE:-kaneo:ci}
    profiles: [realtime]
    environment:
      <<: *app-env
      KANEO_CLIENT_URL: ${KANEO_CI_SECOND_ORIGIN:-http://127.0.0.1:55174}
      REDIS_URL: redis://redis:6379
    depends_on:
      app: {condition: service_healthy}
      redis: {condition: service_healthy}
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:5173/api/health"]
      interval: 2s
      timeout: 5s
      retries: 60
  upgrade:
    image: ${KANEO_UPGRADE_IMAGE:-kaneo:ci}
    profiles: [upgrade]
    environment:
      <<: *app-env
      DATABASE_URL: postgresql://postgres:ci-only-password@postgres:5432/kaneo_upgrade_test
      KANEO_CLIENT_URL: ${KANEO_CI_UPGRADE_ORIGIN:-http://127.0.0.1:55175}
      REDIS_URL: ""
    depends_on:
      postgres: {condition: service_healthy}
      minio: {condition: service_healthy}
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:5173/api/health"]
      interval: 2s
      timeout: 5s
      retries: 60