version: '3.8'
  services:
    app:
      build: .
      ports:
        - "3000:3000"
      environment:
        - DATABASE_URL=${DATABASE_URL}
        - NODE_ENV=production
      depends_on:
        - db

    db:
      image: postgres:15
      environment:
        - POSTGRES_DB=curtain_store
        - POSTGRES_PASSWORD=postgres
      volumes:
        - postgres_data:/var/lib/postgresql/data

  volumes:
    postgres_data:
  