From fbdaa4a71af6feb32424847046d81f25f4071d73 Mon Sep 17 00:00:00 2001 From: Lars van Vianen Date: Sun, 25 Aug 2024 07:50:23 +0200 Subject: [PATCH] Update docker-compose.yml --- .devcontainer/docker-compose.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 17c2a62..8c417a0 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -1,7 +1,23 @@ version: '3.8' services: + stylescape-dev: + image: ghcr.io/stylescape/stylescape-devcontainer/devcontainer:latest + container_name: stylescape-dev-container + environment: + NODE_ENV: development + # Add other environment variables here if needed + volumes: + - .:/workspace:cached + - /workspace/node_modules # Ensures node_modules isn't overwritten by the bind mount + ports: + - "3000:3000" + command: /usr/local/bin/start.sh + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/"] + interval: 30s + timeout: 10s + retries: 3 - devcontainer: - build: - dockerfile: Dockerfile +volumes: + node_modules: \ No newline at end of file