Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Aug 25, 2024
1 parent 7a19947 commit fbdaa4a
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit fbdaa4a

Please sign in to comment.