Skip to content

Modern Docker Management, Designed for Everyone

4.6 KB
Raw Blame
services:
  minio:
    # quay.io/minio/minio went private on 2026-09-24; Chainguard's build is the anonymous-pull replacement.
    image: cgr.dev/chainguard/minio:latest-dev@sha256:d7c906993247627c19f37fc1fa302c34cf2d209ae0e7dc7d52fb0be6ac2849ba
    # A directory created under the data dir is served as a bucket, so backups
    # have somewhere to write without a separate provisioning container.
    entrypoint:
      [
        'sh',
        '-c',
        'mkdir -p /data/arcane-backups && exec minio server /data --address :9000 --console-address :9001'
      ]
    environment:
      - MINIO_ROOT_USER=arcane-test
      - MINIO_ROOT_PASSWORD=arcane-test-secret
    healthcheck:
      test: ['CMD', 'mc', 'ready', 'local']
      interval: 2s
      timeout: 5s
      retries: 15

  postgres:
    image: postgres:18-alpine
    environment:
      POSTGRES_DB: arcane_test
      POSTGRES_USER: arcane
      POSTGRES_PASSWORD: arcane_test_password
    volumes:
      - postgres-data:/var/lib/postgresql
    healthcheck:
      test: ['CMD-SHELL', 'pg_isready -U arcane -d arcane_test']
      interval: 2s
      timeout: 5s
      retries: 10

  docker-socket-proxy:
    image: wollomatic/socket-proxy:1.13.1
    user: '0:0'
    command:
      - '-listenip=0.0.0.0'
      - '-allowfrom=arcane,arcane-upgrader'
      - '-allowhealthcheck'
      - '-allowGET=(/v[\d.]+)?/_ping'
      - '-allowGET=(/v[\d.]+)?/version'
      - '-allowGET=(/v[\d.]+)?/info'
      - '-allowGET=(/v[\d.]+)?/events'
      - '-allowGET=(/v[\d.]+)?/system/df'
      - '-allowGET=(/v[\d.]+)?/containers(/.*)?'
      - '-allowGET=(/v[\d.]+)?/exec(/.*)?'
      - '-allowGET=(/v[\d.]+)?/images(/.*)?'
      - '-allowGET=(/v[\d.]+)?/distribution/.+/json'
      - '-allowGET=(/v[\d.]+)?/networks(/.*)?'
      - '-allowGET=(/v[\d.]+)?/volumes(/.*)?'
      - '-allowGET=(/v[\d.]+)?/swarm(/.*)?'
      - '-allowGET=(/v[\d.]+)?/services(/.*)?'
      - '-allowGET=(/v[\d.]+)?/nodes(/.*)?'
      - '-allowGET=(/v[\d.]+)?/tasks(/.*)?'
      - '-allowGET=(/v[\d.]+)?/secrets(/.*)?'
      - '-allowGET=(/v[\d.]+)?/configs(/.*)?'
      - '-allowHEAD=(/v[\d.]+)?/_ping'
      - '-allowHEAD=(/v[\d.]+)?/containers(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/auth'
      - '-allowPOST=(/v[\d.]+)?/build(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/session'
      - '-allowPOST=(/v[\d.]+)?/grpc'
      - '-allowPOST=(/v[\d.]+)?/commit'
      - '-allowPOST=(/v[\d.]+)?/containers(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/exec(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/images(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/networks(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/volumes(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/swarm(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/services(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/nodes(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/secrets(/.*)?'
      - '-allowPOST=(/v[\d.]+)?/configs(/.*)?'
      - '-allowPUT=(/v[\d.]+)?/containers(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/containers(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/images(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/networks(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/volumes(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/services(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/nodes(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/secrets(/.*)?'
      - '-allowDELETE=(/v[\d.]+)?/configs(/.*)?'
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    read_only: true
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: ['CMD', './healthcheck']
      interval: 2s
      timeout: 5s
      retries: 15
    restart: unless-stopped

  arcane:
    image: arcane:playwright-tests
    ports:
      - '3001:3552'
    extra_hosts:
      - 'host.docker.internal:host-gateway'
    environment:
      - ENVIRONMENT=testing
      - APP_ENV=test
      - APP_URL=http://localhost:3001
      - PUID=65532
      - PGID=65532
      - DATABASE_URL=postgres://arcane:arcane_test_password@postgres:5432/arcane_test?sslmode=disable
      - ENCRYPTION_KEY=3JDIgolks2tJ9ymm1AdqzlYMWu0DUWyt
      - JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
      - TRUSTED_PROXIES=172.16.0.0/12,192.168.0.0/16
      - ADMIN_STATIC_API_KEY=${E2E_ADMIN_STATIC_API_KEY:-}
      - DOCKER_HOST=tcp://docker-socket-proxy:2375
    volumes:
      - arcane_data:/app/data
      - ./projects:/app/data/projects
    depends_on:
      docker-socket-proxy:
        condition: service_healthy
      postgres:
        condition: service_healthy
      minio:
        condition: service_healthy
    build:
      args:
        - BUILD_TAGS=playwright
      context: ../..
      dockerfile: docker/Dockerfile

volumes:
  arcane_data:
  postgres-data: