version: '3' services: cube: image: cubejs/cube:latest depends_on: - redis links: - redis ports: # It's better to use random port binding for 4000/3000 ports # without it you will not able to start multiple projects inside docker # - 4000 # - 3000 # 4000 is a port for Cube.js API - 4000:4000 # 3000 is a port for Playground web-server - 3000:3000 env_file: .env volumes: # Only required for Codespaces/VS Code integration - /var/run/docker.sock:/var/run/docker.sock # If you are going to use own dependencies, for example axios/vault or anything else for getting configuration # - .:/cube/conf - ./dashboard-app:/cube/conf/dashboard-app - ./cube.js:/cube/conf/cube.js - ./schema:/cube/conf/schema redis: image: redis:6 restart: always