Modernize Docker Compose configuration

- Replace docker-compose.yml with compose.yaml (modern standard)
- Remove obsolete 'version' field (deprecated in Docker Compose)
- Remove development service configuration
- Add proper image tagging with skoszewski/jmespath-playground
- Keep build context for local development flexibility
- Simplify to production-only service configuration
This commit is contained in:
2026-01-18 16:01:18 +01:00
parent 9fcb2907c8
commit db3b6beaa3
2 changed files with 9 additions and 25 deletions

9
compose.yaml Normal file
View File

@@ -0,0 +1,9 @@
services:
jmespath-playground:
build: .
image: skoszewski/jmespath-playground
ports:
- "3000:3000"
environment:
- NODE_ENV=production
restart: unless-stopped

View File

@@ -1,25 +0,0 @@
version: '3.8'
services:
jmespath-playground:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
restart: unless-stopped
# Development service
jmespath-playground-dev:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3001:3000"
volumes:
- .:/app
- /app/node_modules
environment:
- CHOKIDAR_USEPOLLING=true
profiles:
- dev