services:
  forge:
    build:
      context: ..
      dockerfile: deploy/Dockerfile
    ports:
      - "3000:3000"
    volumes:
      - forge-data:/opt/forge-data
      - forge-workspaces:/opt/forge/workspaces
    environment:
      - NODE_ENV=production
      - PORT=3000
      - HOSTNAME=0.0.0.0
      - FORGE_DATA_DIR=/opt/forge-data
      - FORGE_WORKSPACES_ROOT=/opt/forge/workspaces
    restart: unless-stopped

volumes:
  forge-data:
  forge-workspaces:
