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:
9
compose.yaml
Normal file
9
compose.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
services:
|
||||||
|
jmespath-playground:
|
||||||
|
build: .
|
||||||
|
image: skoszewski/jmespath-playground
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
restart: unless-stopped
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user