services: # Pybricks Code pybrickscode: container_name: ${PYBRICKSCODE_CONTAINER_NAME:-PybricksCode} image: node:${PYBRICKSCODE_TAG:-18} restart: ${RESTART:-unless-stopped} healthcheck: test: curl -f http://localhost:8000/ || exit 1 command: > sh -c "git clone https://github.com/pybricks/pybricks-code -b \"${PYBRICKSCODE_BRANCH:-master}\" && \ cd pybricks-code && \ yarn install && \ yarn build && \ ./scripts/serve.py" ports: - ${PYBRICKSCODE_PORT:-8000}:8000