services: ni-mail: build: context: . dockerfile: Dockerfile container_name: ni-mail restart: unless-stopped stop_grace_period: 30s env_file: - .env volumes: - ni-mail-data:/app/data environment: - TZ= ports: - ":8080" extra_hosts: - "host.docker.internal:host-gateway" mem_limit: 512m security_opt: - no-new-privileges:true cap_drop: - ALL read_only: true tmpfs: - /tmp:size=64m volumes: ni-mail-data: