invoice-generator / docker-compose.yml
anuragshas's picture
add: deployment files
8f11ac1
raw
history blame
500 Bytes
version: "3.8"
services:
invoice-generator:
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- "8080:80"
restart: unless-stopped
container_name: invoice-generator-app
# Development service (optional)
invoice-generator-dev:
build:
context: .
dockerfile: Dockerfile
target: builder
ports:
- "1234:1234"
volumes:
- .:/app
- /app/node_modules
command: npm run dev
profiles: ["dev"]