conductor

CI task system
git clone git://git.finwo.net/app/conductor
Log | Files | Refs | README | LICENSE

docker-compose.yml (1806B)


      1 # docker-compose.yml - built from this tree, for local use. Signs in as
      2 # admin / conductor. deploy/docker-compose.yml is the deployment one.
      3 #
      4 #   docker compose up -d --build
      5 #   docker compose exec conductor node src/admin-cli.js token:add local
      6 #   CONDUCTOR_WORKER_TOKEN=<token> docker compose --profile worker up -d
      7 
      8 name: conductor-dev
      9 
     10 services:
     11   conductor:
     12     build:
     13       context: .
     14       dockerfile: deploy/Dockerfile
     15     ports:
     16       - "${CONDUCTOR_PORT:-8080}:8080"
     17     environment:
     18       CONDUCTOR_PUBLIC_URL: "http://localhost:${CONDUCTOR_PORT:-8080}"
     19       # localhost and 127.0.0.1 are different origins.
     20       CONDUCTOR_LOCAL_REDIRECT_URIS: "http://localhost:${CONDUCTOR_PORT:-8080},http://127.0.0.1:${CONDUCTOR_PORT:-8080}"
     21       # Signs access tokens. Fixed, so a restart does not sign you out.
     22       CONDUCTOR_SESSION_SECRET: development-session-secret-not-for-real-use
     23       # Encrypts secrets at rest. 32 bytes, hex or base64.
     24       CONDUCTOR_SECRET_KEY: "0000000000000000000000000000000000000000000000000000000000000000"
     25       CONDUCTOR_ADMIN_PASSWORD: conductor
     26       # Short, so the refresh path gets exercised.
     27       CONDUCTOR_ACCESS_TTL: "60"
     28       LOG_LEVEL: "${LOG_LEVEL:-info}"
     29     volumes:
     30       - dev-data:/data
     31 
     32   worker:
     33     profiles: ["worker"]
     34     build:
     35       context: .
     36       dockerfile: deploy/Dockerfile.worker
     37     depends_on:
     38       - conductor
     39     environment:
     40       CONDUCTOR_URL: http://conductor:8080
     41       CONDUCTOR_WORKER_NAME: local
     42       # Interpolation happens before profiles are filtered, so this cannot
     43       # be required or it would break `up` without the worker.
     44       CONDUCTOR_WORKER_TOKEN: "${CONDUCTOR_WORKER_TOKEN:-}"
     45       CONDUCTOR_WORKER_CONCURRENCY: "2"
     46     volumes:
     47       - /var/run/docker.sock:/var/run/docker.sock
     48 
     49 volumes:
     50   dev-data: