File size: 450 Bytes
ef4c36f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
services:
  app:
    build: .
    ports:
      - "3000:3000"
    env_file: .env
    # ponytail: image defaults to production `next start` for deploys; dev wants hot reload
    environment:
      NODE_ENV: development
    command: ["./node_modules/.bin/next", "dev", "--hostname", "0.0.0.0"]
    volumes:
      - .:/app
      # ponytail: anonymous volumes keep the image's linux-built deps, not the host's
      - /app/node_modules
      - /app/.next