name: ${PROJECT_NAME} services: docs: profiles: - docs image: node:22 volumes: - ./:/data - ./tmp:/tmp - ./tmp/nonexistent:/nonexistent - ./tmp/.npm:/.npm working_dir: /data environment: HOME: /tmp XDG_CONFIG_HOME: /tmp/.config XDG_CACHE_HOME: /tmp/.cache ASTRO_TELEMETRY_DISABLED: "1" command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 4321" expose: - 4321 labels: - traefik.enable=true - online.testversion.code.subdomain=${PROJECT_NAME} - traefik.http.services.${PROJECT_NAME}-docs.loadbalancer.server.port=4321 user: ${CODER_UID}:${CODER_GID} docs-build: profiles: - build image: node:22 volumes: - ./:/data - ./tmp:/tmp working_dir: /data command: sh -c "npm install && npm run build" user: ${CODER_UID}:${CODER_GID}