Files
docker-compose-collection/pybricks/compose.yml
T
2023-10-19 19:01:51 +02:00

17 lines
533 B
YAML

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