version: '3.7'

services:
  front:
    build: .
    restart: always
    volumes:
      - ./.next:/app/.next:ro
      - ./public:/app/public:ro
      - ./next.config.js:/app/next.config.js:ro
    networks:
      - traefik
    labels:
      - traefik.enable=true
      - traefik.port=3000
      - traefik.docker.network=traefik
      - traefik.backend=home
      - traefik.frontend.rule=Host:nicco.io

networks:
  traefik:
    external: true