File size: 510 Bytes
8f11ac1
 
 
 
 
 
619c141
8f11ac1
 
 
 
 
 
 
 
 
 
619c141
8f11ac1
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: "3.8"

services:
  invoice-generator:
    build:
      context: .
      dockerfile: Dockerfile.prod
      target: production
    ports:
      - "8080:80"
    restart: unless-stopped
    container_name: invoice-generator-app

  # Development service (optional)
  invoice-generator-dev:
    build:
      context: .
      dockerfile: Dockerfile.prod
      target: builder
    ports:
      - "1234:1234"
    volumes:
      - .:/app
      - /app/node_modules
    command: npm run dev
    profiles: ["dev"]